Skip to content
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

No compatible call signatures? #1

Open
asadaliazam opened this issue Sep 26, 2018 · 2 comments
Open

No compatible call signatures? #1

asadaliazam opened this issue Sep 26, 2018 · 2 comments

Comments

@asadaliazam
Copy link

Hello, I'm getting this error when I deploy

node_modules/firebase-admin/lib/index.d.ts(18,9): error TS2305: Module '"/home/imgResize/functions/node_modules/@google-cloud/storage/build/src/index"' has no exported member 'Bucket'. src/index.ts(4,13): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'typeof "/home/imgResize/functions/node_modules/@google-cloud/storage/build/src/index"' has no compatible call signatures.

@asadaliazam
Copy link
Author

I figured out a temporary solution: Using cloud storage version that you used in your project i.e. 1.7.0

@tripflex
Copy link

Latest release has to be imported differently and new instance created

import { Storage } from "@google-cloud/storage";
const gcs = new Storage();

or

import * as Storage from "@google-cloud/storage";
const gcs = new Storage.Storage();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants