ember-fastboot / ember-cli-fastboot

Server-side rendering for Ember.js apps
http://ember-fastboot.com/
MIT License
851 stars 159 forks source link

FastBoot unusable with Firebase projects #870

Open mikkopaderes opened 2 years ago

mikkopaderes commented 2 years ago

Hi.

I'm using FastBoot for a Firebase project and every time I pass in an object to their API, it ends up with this error

FirebaseError: Function addDoc() called with invalid data. Data must be an object, but it was: a custom Object object (found in document users/XqAOYqMtDfw0qXrDCMOM)

The code is as simple as

const db = firebase.firestore();

db.collection('users').add({ name: 'Test User' });

I see a similar issue in Nuxt.js and I'm wondering if we're having the same case for FastBoot?

What I've tried so far is to disable the prototype extension but it doesn't seem to fix it.

Relevant links: