Hi, I’m getting this error after adding the dependencies and running the code. Maybe I need to change some versions or add additional packages. I tried adding the package to the dependencies, but it returns other errors.
"engine": {
"node": "^18"
},
"dependencies": {
...
"@wagmi/connectors": "^5.7.5",
"@web3auth/auth-adapter": "^9.5.3",
"@web3auth/base": "^9.5.3",
"@web3auth/default-evm-adapter": "^9.5.3",
"@web3auth/ethereum-provider": "^9.5.3",
"@web3auth/no-modal": "^9.5.3",
"@web3auth/no-modal-react-hooks": "^9.5.3",
"@web3auth/wallet-services-plugin": "^9.5.3",
"@web3auth/wallet-services-plugin-react-hooks": "^9.5.3",
"@web3auth/web3auth-wagmi-connector": "^7.0.0",
"@web3modal/wagmi": "^5.1.11",
...
"viem": "^2.22.11",
"wagmi": "^2.14.9",
"zustand": "^4.4.1"
},
"devDependencies": {
...
"typescript": "^5.0.2",
"vite": "^4.4.5"
},
After adding the web3auth dependencies, I get this error on console when running yarn dev.
X [ERROR] Could not resolve "webauthn-p256"
node_modules/permissionless/_esm/accounts/kernel/toKernelSmartAccount.js:5:61:
5 │ import { base64UrlToBytes, bytesToHex, parsePublicKey } from "webauthn-p256";
╵ ~~~~~~~~~~~~~~~
You can mark the path "webauthn-p256" as external to exclude it from the bundle, which will remove
this error.
X [ERROR] Could not resolve "webauthn-p256"
node_modules/permissionless/_esm/accounts/kernel/utils/signMessage.js:3:31:
3 │ import { parseSignature } from "webauthn-p256";
╵ ~~~~~~~~~~~~~~~
You can mark the path "webauthn-p256" as external to exclude it from the bundle, which will remove
this error.
Please help me