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

FieldValue is Undefiend #14

Open
damhy opened this issue Nov 15, 2021 · 1 comment
Open

FieldValue is Undefiend #14

damhy opened this issue Nov 15, 2021 · 1 comment

Comments

@damhy
Copy link

damhy commented Nov 15, 2021

i think they move the Fieldvalue from the firestore so the solution i find is :you import the function directly from the fire base it goes like this :

import { doc, updateDoc, arrayUnion, arrayRemove } from "firebase/firestore";

@pountzas
Copy link

i found out that they updated firebase and the import links changed so instead of this

import Firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/firestore';

use this:

import Firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';

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

2 participants