can't built functions for Firebase functions with this lib
Environment details
- OS: mac 10.12.6
- Node.js version: v8.11.3
- npm version: 6.4.1
@google-cloud/storageversion: 2.3.4
Steps to reproduce
- npm i @google-cloud/storage
- firebase deploy --only functions
Following erros
node_modules/@google-cloud/common/build/src/service-object.d.ts(72,45): error TS8020: JSDoc types can only be used inside documentation comments.
node_modules/@google-cloud/common/build/src/service-object.d.ts(72,45): error TS8028: JSDoc '...' may only appear in the last parameter of a signature.
node_modules/@google-cloud/common/node_modules/google-auth-library/build/src/auth/oauth2client.d.ts(291,55): error TS1039: Initializers are not allowedin ambient contexts.
The types declaration file in @google-cloud/storage is only compatible with newer versions of TypeScript (3+).
Upgrade the typescript compiler version in the functions project:
$ npm install --save-dev typescript@latest
Please re-open this issue if this doesn't work for you :)