firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

Error parsing triggers: Cannot find module './providers/analytics'

Open jyosh opened this issue 8 years ago • 3 comments

I Upgraded to firebase functions version 1 and followed the migration guide. When try to deploy using the command firebase deploy --only functions it is giving an error saying Error parsing triggers: Cannot find module './providers/analytics'. Any idea how to resolve this?

Here is the complete log

=== Deploying to 'codingforms'...

i deploying functions i functions: ensuring necessary APIs are enabled...

  • functions: all necessary APIs are enabled i functions: preparing functions directory for uploading...

Error: Error parsing triggers: Cannot find module './providers/analytics'

Try running "npm install" in your functions directory before deploying.

jyosh avatar Apr 10 '18 05:04 jyosh

Did you try to run "npm install" in your functions directory?

laurenzlong avatar Apr 10 '18 17:04 laurenzlong

Yes, I did but no luck. Solved the issue by doing 'firebase init' again and copy / pasting the code.

jyosh avatar Apr 11 '18 00:04 jyosh

thanks for the update!

laurenzlong avatar Apr 21 '18 00:04 laurenzlong