You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For issues related to the code in this repository file a Github issue.
If the issue pertains to Cloud Firestore, read the instructions in the "Firestore issue"
template.
For general technical questions, post a question on StackOverflow
with the firebase tag.
For general Firebase discussion, use the firebase-talk
google group.
For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized Firebase support channel.
Updated to latest versions of @google-cloud/storage (6.9.5) and firebase-admin (11.6.0). firebase-admin seems to want to use version 6.5.2 of @google-cloud/storage, which uses an incompatible version of Bucket.
I was able to fix the issue by manually changing yarn.lock to only have version 6.9.5 of @google-cloud/storage.
Steps to reproduce:
Install the latest versions of @google-cloud/storage and firebase-admin and try to set a variable typed as Bucket with a storage that could be of type admin.storage.Storage from firebase-admin.
Relevant Code:
(Simplified) Code Snippet
import { Storage, Bucket } from "@google-cloud/storage";
import * as admin from "firebase-admin";
export class GoogleCloudStorage {
constructor(storage: Storage | admin.storage.Storage, storageBucket: string) {
super();
this.bucket = storage.bucket(storageBucket);
}
}
error in vscode:
Type 'Bucket | Bucket' is not assignable to type 'Bucket'.
Hi @babbott-coalesce , since @google-cloud/storage is listed as an optional dependency and since we do not pin to a specific version of the library, you should be able to manually upgrade to the latest version. This should also addressed in #2147, which we will include in this week's release. Thanks!
[READ] Step 1: Are you in the right place?
template.
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Updated to latest versions of
@google-cloud/storage
(6.9.5
) andfirebase-admin
(11.6.0
).firebase-admin
seems to want to use version6.5.2
of@google-cloud/storage
, which uses an incompatible version ofBucket
.I was able to fix the issue by manually changing
yarn.lock
to only have version6.9.5
of@google-cloud/storage
.Steps to reproduce:
Install the latest versions of
@google-cloud/storage
andfirebase-admin
and try to set a variable typed asBucket
with a storage that could be of typeadmin.storage.Storage
fromfirebase-admin
.Relevant Code:
(Simplified) Code Snippet
error in vscode:
yarn.lock
The text was updated successfully, but these errors were encountered: