Closed ProgressTM closed 6 years ago
@ProgressTM Are you actually using functions? If not, you should remove the functions folder and remove the "functions" key from firebase.json. If you are, then run "npm install" inside your functions folder.
I got the idea from @laurenzlong to remove "functions" key but instead removed "firebase-functions" from package.json and "yarn build && firebase deploy" worked and the error above was gone.
@TUKenStone Yes that would get rid of the error, but your functions may fail in production if you use any aspects of the firebase-functions SDK other than to simply define the function triggers. (e.g. if you have database or Firestore functions, or use functions.config()
then you definitely need to keep firebase-functions
in package.json. There are other cases too. )
what can be the solution then in such cases , i am exactly in that situation?
Running npm install in my functions folder worked fine for me
i can not solve this problem..... Error: Error parsing triggers: Cannot find module 'firebase-functions' Require stack:
Try running "npm install" in your functions directory before deploying.
i have this problem too
any solution to this
$ cd functions $ npm install worked for me
I am having the same issue. I have tried running npm install
within the functions folder, and have tried firebase deploy --only functions
inside the functions folder as well as outside.
Same issue here, tried nearly everything.
Error: Error parsing triggers: Cannot find module './PaytmChecksum' Require stack:
What worked for me when using the local emulator and experiencing "module not found" within functions...
This may be overkill... I would also try removing any cache. I tried removing cache and this did not work but I suspect I did not remove the local emulator cache as well.
Nothing is working for me with this. I have run yarn install on my functions folder but I still get this error every time I try to run the emulators locally.
This is basically preventing me from using firebase functions at all...
Anyone figure out how to fix this?
versions "firebase-admin": "^12.1.0", "firebase-functions": "^5.0.1"
Version info
3.16.0
Steps to reproduce
I installed Node.js and followed everything, now my public folder for the website hosting is on my Desktop and I am trying to deploy it but I getting the following error
Expected behavior
It should deploy and host the files in the folder
Actual behavior
[2018-01-12T11:55:29.464Z] ---------------------------------------------------------------------- [2018-01-12T11:55:29.468Z] Command: C:\Program Files\nodejs\node.exe C:\Users\samha\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase --debug [2018-01-12T11:55:29.469Z] CLI Version: 3.16.0 [2018-01-12T11:55:29.469Z] Platform: win32 [2018-01-12T11:55:29.469Z] Node Version: v8.9.4 [2018-01-12T11:55:29.470Z] Time: Fri Jan 12 2018 13:55:29 GMT+0200 (FLE Standard Time) [2018-01-12T11:55:29.470Z] ----------------------------------------------------------------------