-
Notifications
You must be signed in to change notification settings - Fork 938
alpha: Cannot find namespace 'gapi'. #4392
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @peterpeterparker, out of curiosity are you using Webpack or Rollup to build this? |
@samhorlbeck indeed. it's a Stencil app, it uses Rollup under the hood. |
We shouldn't expose our internal typings, especially the global ones (e.g. gapi). #4398 will fix it. Is it possible to ask stencil to ignore typescript errors? it is a purely typings issue, so you app should build fine.
This config works for me. |
Nice 👍 I will most probably wait on #4398 to try alpha further as it will need changes in my code and, the goal being to test the new Firebase API. Therefore no need of workaround meanwhile but, yes I would be able to tweak the tsconfig as you displayed Thx! |
Uh oh!
There was an error while loading. Please reload this page.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
This will probably difficult to debug, as I tried to migrate our app to alpha and, did not faced the issue in a sample app. Anyway, once I migrated
auth
,storage
,firestore
andfirestore lite
I faced the following error when I ran my app for the first time:Steps to reproduce:
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
The text was updated successfully, but these errors were encountered: