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

Created on 10 Apr 2018  路  3Comments  路  Source: firebase/firebase-functions

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.

Most helpful comment

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

All 3 comments

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

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

thanks for the update!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TomClarkson picture TomClarkson  路  5Comments

ahaverty picture ahaverty  路  6Comments

tianhaoz95 picture tianhaoz95  路  4Comments

jspri picture jspri  路  5Comments

soichisumi picture soichisumi  路  6Comments