Full Error:
Error: undefined Unable to resolve module crypto from /node_modules/@toruslabs/eccrypto/dist/eccrypto.cjs.js: crypto could not be found within the project or in these directories:
node_modules
76 | });
77 |
78 | ;// CONCATENATED MODULE: external “crypto”
| ^
79 | const external_crypto_namespaceObject = require(“crypto”);
80 | var external_crypto_default = /#PURE/webpack_require.n(external_crypto_namespaceObject);
81 | ;// CONCATENATED MODULE: external “elliptic”]
Info
- SDK Version: 4.0.0
- Bare Version: 0.70.0
- Screenshots of error:
Please provide the Web3Auth initialization and login code snippet below:
const web3auth = new Web3Auth(WebBrowser, {
clientId,
network: OPENLOGIN_NETWORK.TESTNET, // or other networks
});