Skip to content

The XMLHttpRequest compatibility library was not found. #1766

Closed
@davidheis

Description

@davidheis

Hi, Im new to universal.
first I fixed an error 'cannot read property 'filter' of undefined' by going into angularfire2/firebase.app.module.js and changing the firebase import to 'import firebase from "firebase/app" which fixed that. Now I get this new error. I saw elsewhere on github issues that this was meant to be resolved with an update to "angularfire2". But still getting it.

This error happens when the command "node prerender" is run.

I deployed to firebase after running build:ssr. but viewing page source only shows app-root></app-root with nothing inbetween .

so im trying to get the npm build:prerender to work so my site is better for SEO.

i still dont quite understand the subtleties between ssr and prerender though, but i assume they both should show rendered html on clients browsers page source?

Version info

Angular:
"@angular/cli": "6.0.0",
Firebase:
"firebase": "^5.0.4",
AngularFire:
"angularfire2": "^5.0.0-rc.11",
Other (e.g. Ionic/Cordova, Node, browser, operating system):
ubuntu

How to reproduce these conditions

Failing test unit, Plunkr, or JSFiddle demonstrating the problem

Steps to set up and reproduce
https://github.com/davidheis/honey-ssr

Sample data and security rules

Debug output

** Errors in the JavaScript console **
ERROR { [Error: The XMLHttpRequest compatibility library was not found.]
code: 'auth/internal-error',
message: 'The XMLHttpRequest compatibility library was not found.' }
Error: The XMLHttpRequest compatibility library was not found.

** Output from firebase.database().enableLogging(true); **

** Screenshots **

Expected behavior

Actual behavior

I get Error: The XMLHttpRequest compatibility library was not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions