-
Notifications
You must be signed in to change notification settings - Fork 205
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
Cloud Functions Not Working for Angular Project #347
Comments
@formster-biz I noticed you're using typescript. Are you compiling your code after each change before you deploy? |
After much trial and error, I found that adding I haven't seen this issue or solution anywhere after tons of searching. I basically just found this solution with luck and key word recognition (realized it was in my project's main tsconfig.json file but completely missing from my functions>tsconfig.json file and it had the same words as all my errors, lol). I do NOT understand at all why it works (I am very much a beginner), so if anyone could provide an actual explanation, that would be awesome! Or if this is not a good resolution and I should do something different, please let me know. Thanks! |
Adding the It looks like you're using |
Once again the Internet saves my a**. Thank you !!! |
Trying to implement Firebase Cloud Functions in my Angular app, and getting errors, even after changing my firebase.json file per these instructions firebase/firebase-tools#822 (comment) from @laurenzlong
Version info
firebase-functions: 2.1.0
firebase-tools: 6.1.0
firebase-admin: 6.2.0
Test case
I am working in an existing Angular project already utilizing Firebase Auth, Firestore, & Storage. I am simply following the video by Doug on Firebase YouTube channel: https://youtu.be/DYfP-UIKxH0 and uncommented the helloWorld function from my index.ts file.
Steps to reproduce
After running
firebase init functions
, and uncommenting the helloWorld function from the index.ts file, I got errors after runningfirebase deploy --only functions
. I changed my predeploy array in the firebase.json app from\"$RESOURCE_DIR\"
to%RESOURCE_DIR%
, per the instructions in this comment: firebase/firebase-tools#822 (comment)Were you able to successfully deploy your functions?
No, I received the following errors:
Expected behavior
That the newly deployed functions are active within a minute of deploying them.
Actual behavior
Received above errors.
Thanks in advance for any assistance!
(Updated this post, as I realized some of what I posted is due to actual issues and some of it was just my own misunderstanding of what was happening and I don't want to mislead anyone having the same issue that may come across this.)
The text was updated successfully, but these errors were encountered: