Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastBoot unusable with Firebase projects #870

Open
mikkopaderes opened this issue Jan 3, 2022 · 0 comments
Open

FastBoot unusable with Firebase projects #870

mikkopaderes opened this issue Jan 3, 2022 · 0 comments

Comments

@mikkopaderes
Copy link

mikkopaderes commented Jan 3, 2022

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:

@mikkopaderes mikkopaderes changed the title FastBoot proxying the creation of new objects? FastBoot unusable with Firebase projects Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant