davidroyer / nuxt-ssr-firebase

Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting
https://nuxtssrfire.firebaseapp.com/
278 stars 62 forks source link

Error when adding firebase Auth #17

Open educkf opened 5 years ago

educkf commented 5 years ago

I tried to "merge" this example with your other example using Firebase Auth, but I keep getting the error:

The XMLHttpRequest compatibility library was not found.

This error happens on server render, only when I import Auth to the vuex store. Any idea on how to solve it? thanks!

franklinkemta commented 5 years ago

I also have the same isssue with nuxt universal config. When i use express instead of nuxt as default server am able to solve this by adding the XMLHttpRequest compatibility module to the server/index.js

global.XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest

but using nuxt as default the same problem appear

RouillerRomain commented 5 years ago

no one else ....?