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.
CodePudding user response:
Try this and see if it fix your problem:
- Remove your node_modules folder (
rm -rf node_modules
) npm cache clean -f
npm install
npm install firebase-admin
CodePudding user response:
The errors seem to stem from the following import line:
import { firestore } from 'firebase-admin';