I installed firebase-admin in my React project, and suddenly I am getting a ton (116 to be exact) of "Module Not Found Errors" when loading the page – ‘stream’, ‘util’, ‘assert’, ‘url’, ‘crypto’ and the list goes on and on. Not sure what happened. I tried removing firebase-admin from the package.json file, but that did not fix the errors.
Any suggestions? The app was working fine until I installed firebase-admin.
2
Answers
The errors seem to stem from the following import line:
Try this and see if it fix your problem:
rm -rf node_modules
)npm cache clean -f
npm install
npm install firebase-admin