Skip to content

alpha: Type 'LoadBundleTask' is not generic #4441

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

Closed
peterpeterparker opened this issue Feb 9, 2021 · 3 comments · Fixed by #4207
Closed

alpha: Type 'LoadBundleTask' is not generic #4441

peterpeterparker opened this issue Feb 9, 2021 · 3 comments · Fixed by #4207

Comments

@peterpeterparker
Copy link

[REQUIRED] Describe your environment

  • Firebase SDK version: "firebase": "^0.900.12"

[REQUIRED] Describe the problem

When I try to start my (Stencil) app which I migrated to the Firebase SDK Alpha I get the following error:

[ ERROR ] TypeScript: ./node_modules/@firebase/firestore/dist/exp/index.d.ts:858:53
Type 'LoadBundleTask' is not generic.

L857: /
L858: catch(onRejected: (a: FirestoreError) => R | LoadBundleTask): Promise<R | LoadBundleTaskProgress>;
L859: /
*

Happy to help to debug it but not sure where to start.

I also spotted in issue #4381 almost the same exception but in my case, I don't use Timestamp and the msg does not contains much information.

Steps to reproduce:

git  clone https://github.com/deckgo/deckdeckgo/ -b firebase_alpha
cd deckdeckgo/studio
npm ci
npm run start

Relevant Code:

Signin component:

https://github.com/deckgo/deckdeckgo/blob/bd41dd2b192ff366ccb660532a988f73b0169b6c/studio/src/app/components/core/app-signin/app-signin.tsx#L3

Firebase init:

https://github.com/deckgo/deckdeckgo/blob/firebase_alpha/studio/src/app/utils/editor/firestore.utils.ts

Auth state change:

https://github.com/deckgo/deckdeckgo/blob/firebase_alpha/studio/src/app/services/auth/auth.service.ts

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@wu-hui
Copy link
Contributor

wu-hui commented Feb 16, 2021

Hey, sorry for the late reply, we are working on a fix already: #4207

This should address the issue.

@peterpeterparker
Copy link
Author

Nice thx for the fix! I'll give it a try when released 🚀

@firebase firebase locked and limited conversation to collaborators Mar 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants