Home > database >  React Module Not Found
React Module Not Found

Time:12-11

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:

  1. Remove your node_modules folder (rm -rf node_modules)
  2. npm cache clean -f
  3. npm install
  4. npm install firebase-admin

CodePudding user response:

The errors seem to stem from the following import line:

import { firestore } from 'firebase-admin';
  • Related