-
Notifications
You must be signed in to change notification settings - Fork 206
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
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! |
Facing the same issue on Typescript 5.7.3. Is it possible to write a backend using normal programming languages? Why do you drag these stillborn technologies into your projects? I can understand why they are used on the frontend, but there are plenty of alternatives for the backend |
Hi @pixelsnis, Thanks for reporting this issue! We’ve received it and are reviewing it. We’ll provide updates as soon as possible. |
Updating TypeScript solves one error but I am still seeing this:
It's very annoying - I just created a new project and imported firebase admin. I would expect it to work. |
Changing the default "module": "NodeNext" to "module": "commonjs" helped. |
Thx, and do not forget to also change |
I soved it with TS 5.7.2, editing the index.d.ts, long file. from this: to this: This is a crappy solution, but i need to deploy those functions |
still getting the same error after updating typescript, firebase tools, admin and cloud storage locally. it works fine when i run it as a github action in my pipeline.
|
I also had to update my global TypeScript version. Double check that the global version is the same (mine was still |
Guys, you didn't specify that the package.json with the latest version of typescript to update is the one contained in the "functions" folder. For those like me who have a project with various tools, it has a parent package.json, and then child folders. Among these child folders there is the "functions" folder, which contains the package.json to update. This is the only way I managed to solve it. |
I continued having trouble after following the advice above. In my case, I discovered the I also got the warning mentioned above, which probably needs to be addressed. |
Esse método funcionou para mim também |
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: