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...
Error: Error parsing triggers: Cannot find module './providers/analytics'
Try running "npm install" in your functions directory before deploying.
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!
Most helpful comment
Yes, I did but no luck. Solved the issue by doing 'firebase init' again and copy / pasting the code.