/app/app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (/app/app.js:15:12)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
I also tried to install firebase from the console by writing :
npm i firebase
but didn’t solve the problem. I also tried in the console this command
other note: npm i adds the dependency to package.json. run refresh after that to make sure glitch is aware of the change and won’t undo it later. or use glitch’s own ui for adding dependency packages. open package.json in the editor to get started with that.
npm WARN node-fetch@2.6.7 requires a peer of encoding@^0.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN ws@8.11.0 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@8.11.0 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN whatsapp-cloudapi-quick-start@1.0.0 No repository field.
firebase@9.14.0
added 113 packages from 95 contributors, removed 89 packages, updated 11 packages and audited 124 packages in 75.017s
found 0 vulnerabilities
Hi OP, I wasn wondering did you find a solution for your issue with firebase module not being found? I have a similar issue when I try to use it in my node express app:
Error: Cannot find module ‘firebase’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
Jump Toat Object. (/app/server.js:8:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
I have also tried the above suggestions and refresh page but nothing resolves the error.