I figured it out. I was able to run it locally by replacing the "build"
property on line 7 of the dfx.json file of the Internet-Identity repo.
I changed it from: "src/internet_identity/build.sh"
to: "cargo build --release --target wasm32-unknown-unknown"
after that, I deleted the node_modules
file and the package-lock.json
file. finally, I ran the following commands in the terminal:
npm i
dfx start
II_ENV=development dfx deploy --no-wallet --argument '(null)'
edit: you’ll have to run the commands with the original build settings first. the build will fail, then you change the settings as I’ve described above, then run the commands again, then it should work.