FirebaseExtended / emberfire

The officially supported adapter for using Firebase with Ember
https://firebaseopensource.com/projects/firebaseextended/emberfire/
MIT License
684 stars 263 forks source link

error querying firestore in fastboot mode #607

Open marendra opened 4 years ago

marendra commented 4 years ago

DEBUG: Ember : 3.15.0 DEBUG: Ember Data : 3.15.1 DEBUG: EmberFire : 3.0.0-rc.6 DEBUG: Firebase : 7.12.0 DEBUG: -------------------------------

i tried in the application.js import Route from '@ember/routing/route'; import {inject as service} from '@ember/service';

          export default class ApplicationRoute extends Route {
          @service store;
        model(){
                  return this.store.findAll('user');
                       }
             }

The error message are:

webpack://ember_auto_import/./node_modules/@firebase/webchannel-wrapper/dist/index.esm.js?:713 throw a; ^

ReferenceError: XMLHttpRequest is not defined at X.g.ca (webpack://ember_auto_import/./node_modules/@firebase/webchannel-wrapper/dist/index.esm.js?:1804:16) at cc (webpack://ember_auto_import/./node_modules/@firebase/webchannel-wrapper/dist/index.esm.js?:1018:94) at ac (webpack://ember_auto_import/./node_modules/@firebase/webchannel-wrapper/dist/index.esm.js?:997:3) at Ad.g.Ha (webpack://ember_auto_import/./node_modules/@firebase/webchannel-wrapper/dist/index.esm.js?:2180:83) at Ab (webpack://ember_auto_import/./node_modules/@firebase/webchannel-wrapper/dist/index.esm.js?:739:11)

benjaminbalazs commented 4 years ago

I am also curious about how to tackle this issue as the documentation is empty for Fastboot.