-
Notifications
You must be signed in to change notification settings - Fork 937
Unable to use Firebase-Auth Feature in esm Bundle in Browser #3397
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 found a few problems with this issue:
|
Hi @tonprince I had the same issue, downgrading @rollup/plugin-commonjs to 13.0.0 (fixed version) helped a lot. |
Can you change the config in rollup.config.ts to:
The reason it broke is that I will add a browser build in cjs to |
Thanks @Feiyang1 for the hint. Setting
|
Uh oh!
There was an error while loading. Please reload this page.
Describe your environment
Describe the problem
I am trying to load the firebase-auth feature in a Svelte webapp with rollup and get an error:
uncaught TypeError: index_cjs$2.INTERNAL is undefined
The error occurs in auth.esm.js file where the variable "firebase.INTERNAL" is undefined.
Steps to reproduce
https://github.com/tonprince/firebase-test.git
File: App.svelte
When commenting out the line
import 'firebase/auth';
the error disappears.Workaround:
Add the following scripts into index.html:
The text was updated successfully, but these errors were encountered: