-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Hi guys
I've recently updated my angularfire2 to version RC6, which stopped my webapp from being served as SSR webapp. I've provided information below. I hope this will suffice. :)
Version info
"dependencies": {
"@angular/animations": "^5.0.0",
"@angular/common": "^5.0.0",
"@angular/compiler": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^5.0.0",
"@angular/http": "^5.0.0",
"@angular/platform-browser": "^5.0.0",
"@angular/platform-browser-dynamic": "^5.0.0",
"@angular/router": "^5.0.0",
"@firebase/app": "^0.1.8",
"angularfire2": "5.0.0-rc.6",
"core-js": "^2.4.1",
"firebase": "4.9.1",
"path": "^0.12.7",
"rxjs": "^5.5.1",
"zone.js": "^0.8.14"
}
How to reproduce these conditions
Install angularfire2 with firebase as per my dependency versions.
Steps to set up and reproduce
I've setup a firebase function which serves my application like shown in the video from firebase -> Link to firebase tutorial
When trying to access my site online, it comes out with a 503 - first byte timeout
This did not appear until i updated angularfire2 to version rc6.
Since then i've had this error.
Note that i've tried with multiple versions of "firebase"
this includes 4.8.0, 4.8.2 and 4.9.0 without luck. Everything compiles perfectly when running ng serve.
Debug output
I've checked the functions logs and this error comes out.
Unhandled Promise rejection: The XMLHttpRequest compatibility library was not found. ; Zone: <root> ;
Errors in the JavaScript console
GET https://path-to-site 503 ()
Screenshot
Expected behavior
Should serve the webapp
Actual behavior
Comes out with service unavailable and function log errors
I hope i've provided sufficient data for you guys to take a look at. I can provide more information if need be.
Kind regards Chris