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

FirebaseError: Type does not match the expected instance... different Firestore SDK? #68

Open
blastshielddown opened this issue Sep 2, 2022 · 4 comments

Comments

@blastshielddown
Copy link

blastshielddown commented Sep 2, 2022

I'm working on an app in Nextjs 12 and everything appears to be working fine but I keep getting this error at build time about a different Firestore SDK:

error - unhandledRejection: [FirebaseError: Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?] {
  code: 'invalid-argument',
  customData: undefined,
  toString: [Function (anonymous)]
}

Everythig compiles and the site works fine aside from this error but I'd like to understand the problem if possible. Sorry I don't have much more to share, the error doesn't indicate much.

Here's more on my env:

    "@react-query-firebase/firestore": "^1.0.0-dev.7",
    "firebase": "^9.9.3",
    "next": "12.2.5",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-query": "3.*"

Edit: Should add that I am working in JS not TS.

@dorianbucknor
Copy link

dorianbucknor commented Dec 19, 2022

I have the same issue. #83
#83 (comment)

@qaws5503
Copy link

Same here, did someone solve this problem?

@tombouquet
Copy link

Getting the same issue as well.

@Eliav2
Copy link

Eliav2 commented Jul 30, 2023

relevant: https://stackoverflow.com/a/69242591/10577976
i guess no one is going to update this lib to support project who using the modular firebase sdk.

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

5 participants