Home > Blockchain >  Module not found: Error: Can't resolve 'crypto' React
Module not found: Error: Can't resolve 'crypto' React

Time:01-03

I installed the jsonwebtoken package and ever since I'm getting the following error on running the React app : enter image description here

I tried installing the crypto-browserify package but that too didn't resolve the issue.

CodePudding user response:

Try adding the following just after the devDependencies in your package.json

"devDependencies": {
    ...
},
"browser": {
    "crypto": false
}

CodePudding user response:

Try installing crypto-browserify package and see if that works. If you still see that error try deleting your node_modules folder and install all packages again.

  • Related