-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TypeError: undefined is not a function #612
Comments
With the information you provided, there is no way we can help you debug. The error message doesn't have much useful information. Is there a way that you can check where the error is thrown in firebaseui? |
It comes from this line:
This is what I can see when I click the link to the code in the developer tools. It sets the cursor to the position where you see the undefined.
these are the versions I use:
|
In your bundled code, Can you also provide your package.json? I saw you are using |
I changed both imports and the issue is different now. This line in my code This is the package.json content
|
I suspected the issue was with your bundler config. I think you will need to exclude the external libs in your bundler config. I don't think the bug is in firebase or firebaseui. |
ok makes sense. I will try to find out how to do this. Thx for the help! |
I was temporarily able to fix this by changing the node module's import statement (in the |
I'm having this same issue with Rollup. I think the import in firebaseui is incorrect |
I ended up with installing https://github.com/rollup/plugins/tree/master/packages/replace and using this stupid solution in my rollup plugins config: replace({
"import * as firebase from 'firebase/app';": "import firebase from 'firebase/app';"
}), |
This issue is still there, and reproducible in my repo: akauppi/GroundLevel-firebase-es#18 I don't think the above positively nails it as a bundler configuration problem, and the validity of Firebase and FirebaseUI modules, when used as pure ES modules should be checked. |
Looking back at this (reading all the comments), it's pretty clear to me. The discussions mention "bundler configs" but I think the common factor is that none of us use them - in the traditional sense at least. We're trying to bake FirebaseUI into native ES module systems. That should be possible. Related issue: |
ES import in FirebaseUI 4.7.1 has been changed, for the better. May I suggest closing this issue, since current remaining issues are best discussed elsewhere. |
I am using stenciljs (Ionic pwa) and I am trying to embed the firebaseui in the applications. There error I get is this:
TypeError: undefined is not a function at new Sn (app-home.entry.js?s-hmr=367787020388:formatted:4184) at AppHome.componentDidLoad (app-home.entry.js?s-hmr=367787020388:formatted:4225) at safeCall (chunk-3853a083.js:1361) at postUpdateComponent (chunk-3853a083.js:1291) at updateComponent (chunk-3853a083.js:1273) at Array.update (chunk-3853a083.js:1205) at consumeTimeout (chunk-3853a083.js:120) at flush (chunk-3853a083.js:143)
And this is my code:
The text was updated successfully, but these errors were encountered: