simondotm / nx-firebase

Firebase plugin for Nx Monorepos
https://www.npmjs.com/package/@simondotm/nx-firebase
MIT License
175 stars 31 forks source link

Firebase Functions deployment issue #73

Closed mbrimmer83 closed 1 year ago

mbrimmer83 commented 1 year ago

Not a problem with this package, but I wanted to surface it to others who may run into deployment errors since it affects mono-repos in general.

[debug] [2022-09-05T11:21:08.962Z] Building nodejs source
[debug] [2022-09-05T11:21:08.963Z] Could not find functions.yaml. Must use http discovery
[debug] [2022-09-05T11:21:08.972Z] Error: spawn ./node_modules/.bin/firebase-functions ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
[error]
[error] Error: An unexpected error has occurred.
[debug] [2022-09-05T11:21:09.063Z] Serving at port 9005

When deploying after upgrading firebase tools, I ran into this issue. I was able to fix deployments by reverting the firebase-tools version.

simondotm commented 1 year ago

Thanks, I've seen this happen too. I think it's a node version issue.

hendrickson-tyler commented 1 year ago

Thanks for the heads up @mbrimmer83, definitely ran into this issue myself. Specifically for my case, I had to downgrade firebase-tools from 11.19.0 to 11.18.0

simondotm commented 1 year ago

Closing as non-plugin related