Closed portikM closed 3 years ago
Sorry, my bad, closing this as it turned out to be an error coming from a different fetch()
hook inside one of the components where the parameter passed to .where()
clause was indeed undefined.
Would be helpful if error message in the console mentioned which fetch()
hook is failing though, took me a while to figure out that I'm looking at the wrong block of code.
Cheers!
Description
I am trying to fetch some data in
fetch()
hook:But getting an error:
Error in fetch(): Error [FirebaseError]: Function Query.where() called with invalid data. Unsupported field value: undefined
Can't be an issue with the route parameter as the slug is there when I try to console it.
Could be related to https://github.com/nuxt-community/firebase-module/issues/167
The solution proposed here did not work: https://firebase.nuxtjs.org/community/faq/#firestore-using-array-contains-or-array-contains-any-does-not-work