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
Error: Uncaught (in promise): TypeError: Failed to resolve module specifier 'firebase/auth' #2390
Comments
I've heard complaints with StackBlitz here, I'll be looking into that environment shortly. |
Out of curiosity does it work if you short circuit lazy loading of the auth sdk? Just |
I'm actually doing that already in my |
try to use |
From your Stackblitz
Please refer to the Changelog:
Hope it helps. Cheers |
i hit the same error. anyone know what exact code changes to make it work again? |
I am also having this problem. The code in docs doesnt work |
Hey all- I think it's due to an @jamesdaniels is there a future release coming that would fix this? Can also try to get something implemented on our side as well. Edit: This should now be working. Feel free to close if you're seeing the same on your end! |
I've just checked and this is still the case for me You can check the project https://over-track.stackblitz.io/ |
@EricSimons This looks fixed now. I can sucesfully login with firebase auth now. Ty Eric |
hi @arikanorh GREAT to hear that! could you share the working code to import firebase/auth? Thanks! |
Hello I've added following import to my app.module
|
lol, i tried to build a POC by create new project in StackBlitz. But i think thing jz get little complicated as now all angular project defaulted with Ivy, and it compile differently using ngcc. now i getting a different error.
then it refresh with another error
here my project: https://stackblitz.com/edit/angular-ivy-wemptx feel free to fork it. |
Here is my working app. You can have a look at |
hi @arikanorh ! thanks for the GREAT reference. app.module.ts
your user/auth service file
service constructor
For a non JS/TS expert, i struggling to various types of import, firebase/auth, firebase, @angular/fire/auth, frankly i cant imagine how crazy the magic done behind :) but really thanks to the community's great support!! @EricSimons , @arikanorh ! |
Today I am figured out that https://stackblitz.com/edit/angular-ivy-tmcsfk?file=src%2Fapp%2Fapp.component.ts Authentication working properly now with stackblitz. we need |
Should not be an issue anylonger with the newer versions of the libs. Firebase v8 cleaned this up a lot. |
Version info
Angular:
9.1.0
Firebase:
7.13.2
AngularFire:
Tried with both 6.0.0 and 6.0.0-rc.2
Other (e.g. Ionic/Cordova, Node, browser, operating system):
I'm using this on StackBlitz.
How to reproduce these conditions
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
https://stackblitz.com/edit/kittygram-oauth
Steps to set up and reproduce
Sample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
Debug output
** Errors in the JavaScript console **
Expected behavior
It should not ask to install
@firebase/app
Actual behavior
It alerted saying that
@firebase/app
is not installed and prompted to install it. Once I did, I threw the error mentioned above when I tried to callthis.afAuth.signInWithPopup(new auth.GoogleAuthProvider());
The text was updated successfully, but these errors were encountered: