You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Expected behavior
In my opinion, angularfire2 already have XMLHttpRequest library, but maybe some problem when bootstrap. Maybe you can fix this bug and I don't have to add XMLHttpRequest manually
Actual behavior
get error with XMLHttpRequest.
Solution: I add this on top, error gone.
// server.ts file
(global as any).XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
// your code next...
The text was updated successfully, but these errors were encountered:
hiepxanh
changed the title
angularfire2 auth not working with angular universal
Bug and solution: angularfire2 auth not working with angular universal
Oct 16, 2017
Firebase doesn't official support universal yet :(
I have worked Auth and the RTDB into my starter with some dependency injection monkey patching if you want to try it out before official universal support is here:
Thanks for @katowulf advice.
Think you found a bug?
Yes, I found a bug in angular auth when running on nodejs with angular universal universal starter repo
Version info
Steps to set up and reproduce
npm run build:dynamic && npm run serve:dynamic
I make an sample repository here to view my code
ERROR
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Expected behavior
In my opinion, angularfire2 already have XMLHttpRequest library, but maybe some problem when bootstrap. Maybe you can fix this bug and I don't have to add XMLHttpRequest manually
Actual behavior
get error with XMLHttpRequest.
Solution: I add this on top, error gone.
The text was updated successfully, but these errors were encountered: