Error: Error parsing triggers: Cannot find module 'example'
See original GitHub issueI have an issue at the stage of deployment, I can only share portion of the code.
I have setup some global paths in the tsconfig.json
like this
"baseUrl": "./",
"paths": {
"example": [
"example/path"
]
},
and then added these to the tslint.json
not for implicit module dependency like this
"no-implicit-dependencies": [
true,
[
"example",
"example/index",
"example/undefined",
]
],
when running firebase deploy
it start compiling then when almost ready to deploy im getting this error
+ functions: Finished running predeploy script.
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 'example'
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error parsing triggers: Cannot find module 'firebase-functions'
I got the idea from @laurenzlong to remove "functions" key but instead removed "firebase-functions" from package.json and "yarn build && ...
Read more >Error parsing triggers Cannot find module when deploying ...
I am implementing a firebase function endpoint that requires I authenticate with two different projects. Information found on SO and other ...
Read more >When deploying a function to Firebase using ... - Medium
Fixing “Error parsing triggers: Cannot find module './logger'” in Firebase CLI. When deploying a function to Firebase using $ firebase deploy --only ...
Read more >Error parsing triggers: Cannot find module 'firebase-functions'
Coding example for the question Error: Error parsing triggers: Cannot find module 'firebase-functions'-node.js.
Read more >Error parsing triggers: Cannot find module 'firebase-admin'
Can you reproduce this in a fresh directory with a hello world function? Wondering if it's a versioning/npm issue or something in a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@inmogr I would suggest using
import
andexport
, that should resolve the errors you’re seeing. In the stackoverflow post you linked, looks like using incompatible require/export statements is what is causing the module not to be found. As the post alludes, this is not a functions SDK issue but a matter of correct nodejs usage.here is the error im getting on this repo (https://github.com/inmogr/sample-error-fire-funcs)