skip to Main Content

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


  1. Chosen as BEST ANSWER

    The errors seem to stem from the following import line:

    import { firestore } from 'firebase-admin';
    

  2. 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
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search