-
Notifications
You must be signed in to change notification settings - Fork 373
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
typescript definitions conflict with v6.0.0 & @google-cloud/storage and @google-cloud/firestore #358
Comments
I found a few problems with this issue:
|
Actually it seems that culprit seems to be latest
|
Had the same issue. This fixed it for me: npm i @google-cloud/storage@latest --save |
@vdiaz1130 This did not seem to help. I'm still getting the same error. |
Same problem here: package versions
node version:
npm ERR! A complete log of this run can be found in: Error: functions predeploy error: Command terminated with non-zero exit code2` |
I have the same problem with the newest packages. |
I have the same issue here :) |
Having the same issue |
I have the same issue. Backward versions don't seem to help |
Same issue here. I'm currently sticking with @google-cloud/storage v1.7.0 since an upgrade to v2 breaks with the error that @ovaris is mentioning. |
Same man, have a nice cup of coffee, and if I can help, I will ! |
Some news about this issue ? |
Also having same issue. Shouldn't this be given higher priority since it's basically breaking Typescript build? |
I opened new issue at google-cloud/storage repo - here |
As a work arround in your /node_modules/firebase-admin/lib/index.d.ts replace: Line 18 Use: AND Line 589 Instead of: Use: And where you need to call it use it like this: const {Storage} = require('@google-cloud/storage'); It worked for me, im using: "@google-cloud/storage": "^2.0.3", |
seems to work again with the recently released "@google-cloud/storage": "^2.1.0", guess this can be closed. |
How are you importing With
I'm getting following error
|
Using typescript, I'm doing:
Which threw the error mentioned above before, but since v2.1.0 it works again for me. |
@lupas Issue still remains, you cannot use |
Created a PR #368 |
Isn't this because firebase admin uses @types/google-cloud__storage:
But the package already has it's own definitions? If I do: then it bypasses the error UPDATE: Looks like a better potential workaround is to use:
UPDATE 2: I got it working this different way
You can read the related threads here: |
I know it is not pretty but here is a "temporary" workaround to get your code to compile and ignore the conflict. Inside your
Read more about this option here: https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/release%20notes/TypeScript%202.0.md#new---skiplibcheck |
This upgrade has been scheduled for the next major release. We are working internally to figure out the timeline. |
Having the same issue with (OT here, but we have to resort to using |
Im having this problem now. What's weirder is, I am using the EXACT same dependencies for the project thats tied to a test firestore database and IT has no problem deploying the functions. So weird. |
@Mikkelet Try using exact versions instead of approximate ( The |
Hi,
I have a project which uses firebase-admin & @google-cloud/storage and @google-cloud/firestore.
After upgrading to firebase-admin v6.0.0 I get following typescript errors:
The text was updated successfully, but these errors were encountered: