-
Notifications
You must be signed in to change notification settings - Fork 211
Build failed with error TS2416 in firebase-functions/lib/common/providers/database.d.ts(80,5) #1442
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I deleted yarn.lock and node_modues and reinstalled everything. Now, I get the errors during typescript compile step instead of the build step.
|
I had the same issue, and it turned out to be caused by upgrading
It seems that this issue occurs when depending on version 1.0.0 of @faizanabidnaqvi - "firebase-admin": "^11.9.0",
+ "firebase-admin": "11.9.0", |
Appears to be issue with new firebase-admin version firebase-admin Downgrade to 11.9.0 and you should fix the issue. |
Hi there! Thanks a lot for the responses. I was able to deploy after changing Usually, I always try staying on the latest versions but I'll stick to this version till the issue is fixed in the latest firebase-admin. |
Hi all, thanks for escalating this issue. We've released an emergency patch for |
I'm still getting this issue with version 12.0.0 of firebase-admin. |
@azaandam for now I downgraded to these versions "firebase-admin": "^11.8.0",
"firebase-functions": "^4.3.1", |
I'm seeing the same issue with @blidd-google Can this issue be reopened, I did not find an open issue about this? |
I'm also seeing this compatibility issue between
|
I have the same problem. Downgrading to firebase-admin: ^11.10.1, firebase-functions: ^4.6.0 fixes it |
If you downgrade firebase-admin though, you lose the firestore aggregate query features :( |
This worked in my case. |
Same issue with firebase-admin: ^12.0.0, firebase-functions: ^4.6.0 |
Try with firebase-admin: ^11.10.1 |
Same issue with firebase-admin: ^12.0.0, and I have found a temporary solution to this problem. |
I also have faced this issue with firebase-admin 12.0.0 and firebase-functions 4.6.0. |
Same here. Shouldn't this be reopened? |
+1, facing this again in Jan 2024. Maybe it should've never been closed, arbitrarily downgrading dependencies is not an actual solution… |
I don't really agree with you on this, I think it's fairly common to have incompatible packages like this, however these incompatibilties do need to be reflected in their dependencies! For me the real problem here is that the recommended and latest versions of these packages are not comaptible, espacially since package constraints don't seem to reflect this (and this could have easily be caught by a unit test)! Thereby making it impossible to use some of the new features, since (as far as I managed to test) the latest version of |
Is there any way to get this issue reopened or escalated? |
But that's exactly what I'm referring to, breaking dependencies has become so common that we don't see it as a problem anymore... and it's not directed to you in any way, I'm just ranting into the void 😅 sigh. Anyway, I do hope that we can now get a test to cover this code. |
Well you can't get around breaking changes some times, altough you are right, there are more (unnecessary) breaking changes! However personally I don't really mind as long as the dependencies reflect that and there is any compatible version 😄
Understandable, have a nice day 😂 |
Filed a new issue for this to get triaged: #1515 |
Hey @blidd-google! :) Any chance you could take another look at this? Seems like the bug is still/again present! |
Same issue still persists with |
+1 |
+1 workaround: downgrade versions: "firebase-admin": "^11.11.0",
"firebase-functions": "^4.5.0", |
+1 same issue |
+1 Same issue, i'm using this workaround
Other packages i'm using: "google-auth-library": "^9.2.0",
"@google-cloud/pubsub": "^4.0.7", Typescript version: "typescript": "^5.3.2" |
Related issues
[REQUIRED] Version info
node:18.12.1
firebase-functions:4.4.0
firebase-tools:12.4.4
firebase-admin:11.9.0
[REQUIRED] Test case
Deploy any firestore trigger functions
[REQUIRED] Steps to reproduce
I am trying to deploy a function that I have updated a hundred times before. I didn't make any code changes or library changes and also successfully deployed the same function yesterday. I started facing this issue.
I also tried the latest function and admin libraries in another project and tried deploying the same function; I still get the same error. Also tried deploying a different function entirely and still get the same error. An important note is that I haven't changed any code; it was working fine till yesterday.
The function I am deploying is a simple onUpdate trigger.
My package.json is as follows:
[REQUIRED] Expected behavior
The function should have deployed successfully.
[REQUIRED] Actual behavior
Were you able to successfully deploy your functions?
Nope as indicated above.
The text was updated successfully, but these errors were encountered: