-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase functions are not being deployed while they used to be deployed without any problem #3605
Comments
I'm unable to reproduce the issue on my project after copying over the dependencies you've set 😢 . The error message Also, it looks like you are using an older version of the CLI. Can you try giving another go with the latest version of the tool ( |
I can confirm that this breaks while using firebase as a local package doing: For me, using the global package with the firebase command worked well. not happy with being installed as a local package. Edit: |
This suggests that the versions |
9.16.0 installed global and locally both work |
Hi, this works now. It was a really silly mistake. While writing a new function, VS Code was smart enough to somehow automatically import the following module at the top: const { isExpressionWithTypeArguments } = require('typescript'); Which led to all the errors. Silly mistake. Killed it dead, installed the new version globally, everything's fine. Thanks for helping out though! |
Even though the creator of the issue might have had a different issue, the versioning problem might still be there. 2021-07-26T05:06:43.259311458Z bad CRC f7974029 (should be 00000000) It might be unrelated though. |
@pmabres The It does sound like a new issue unrelated to this issue. Let us know by opening up a new issue (hopefully w/ steps to reproduce your error). |
[REQUIRED] Environment info
firebase-tools:8.9.0
Platform:macOS Big Sur v11.4
[REQUIRED] Test case
package.json:
[REQUIRED] Steps to reproduce
Deploy a test function using package.json above
[REQUIRED] Expected behavior
The functions used to be deployed without any problem the last time I tried, which is 2-3 days ago, and should continue to do so.
[REQUIRED] Actual behavior
I cannot deploy any of the functions. All of the functions throw the following errors:
Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
From Firebase console I see the following error messages:
Provided module can't be loaded.
Did you list all required modules in the package.json dependencies?
Detailed stack trace: Error: Cannot find module 'typescript'
The problem is I have all the necessary packages including Typscript installed.
The text was updated successfully, but these errors were encountered: