-
Notifications
You must be signed in to change notification settings - Fork 875
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
signInAnonymously is not working as expected #121
Comments
I can't recreate this. I am using: webpack.config.js:
My script:
Works as expected. |
I created repo with the example: https://github.com/jaroslav-kubicek/firebase-nonworking-example |
https://stackoverflow.com/questions/34973442/how-to-stop-babel-from-transpiling-this-to-undefined
Quoting: "The thing that is causing you trouble is that in an ES6 module, this is undefined, whereas in the "script" case, this varies depending on the environment, like window in a browser script or exports in CommonJS code." |
Thank you! Would be nice if lib can sustain this approach, although I expect it would require some effort... I consider this as solved for now. |
- Moves all TS files into `src/`, including `index.ts`. Updates TSConfig. - Splits `api.ts` into `create-installation.ts` and `generate-auth-token.ts`. - Changes directory structure and moves files around. - Combines `REQUEST_FAILED` errors.
My environment
The problem
When trying to log in anonymously, promise is rejected with weird error
TypeError: Cannot read property 'ac' of undefined
https://www.googleapis.com/identitytoolkit/v3/relyingparty/getAccountInfo
followed byhttps://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser
Steps to reproduce:
Relevant Code:
webpack config:
code:
Error:
The text was updated successfully, but these errors were encountered: