-
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
Error TS2315: Type 'Int32Array' is not generic. #1664
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
This is a new problem for sure. Just initialized a new firebase project and it won't even build with it's own default code. |
Want to also add that your fix does work for me as well. Reverting Int32Array<ArrayBuffer> to simply Int32Array. I'm not sure why this was changed. |
Same issue using: |
The problem seems to be an outdated version of Typescript which is installed by default in the project created using |
Encounter this issue too. |
"firebase-admin": "^13.0.2", still has the same error, only solved by changing the source file manually |
Can confirm that upgrading typescript solved the issue for me as well, as per @tdcolvin. |
Confirmed: Upgrade TypeScript to 5.7.3 will fix this issue.
|
Built fine yesterday, had issues today. Can confirm as well that updating TypeScript to latest fixed the issue immediately. |
Also, this message should be updated if TS 5.7.3 is indeed required.
|
Same issue
|
I don't know if this message is caused by out-of-date |
"@google-cloud/storage": "^7.15.0"
Updating typescript to 5.7.3 fixed this issue. Can confirm @tdcolvin solution works! |
Related issues
None that I could find
[REQUIRED] Version info
"firebase-admin": "^12.1.0"
"firebase-functions": "^5.0.0"
node:
v20.16.0
firebase-functions:
12.1.0
firebase-tools:
13.16.0
firebase-admin:
12.1.0
[REQUIRED] Test case
Initialize Firebase functions using
firebase init functions
. Write any function and try deploying withfirebase deploy --only functions
.[REQUIRED] Steps to reproduce
Same as test case
[REQUIRED] Expected behavior
Deployment should go through normally
[REQUIRED] Actual behavior
Deployment fails with this error:
Were you able to successfully deploy your functions?
No, but by modifying the mentioned file manually and changing
Int32Array<ArrayBuffer>
toInt32Array
fixes it temporarily. Function deploys after that.The text was updated successfully, but these errors were encountered: