I installed the jsonwebtoken package and ever since I'm getting the following error on running the React app :
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.