Skip to content

FastBoot unusable with Firebase projects #870

Open
@mikkopaderes

Description

@mikkopaderes

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:

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