[Vuejs]-Error in v-on handler: "FirebaseError: [code=invalid-argument]: Function CollectionReference.doc()

1👍

The error is fairly clear. It’s saying that the id argument you passed to db.collection("movies").doc(id) is expected to be a string, but you passed something else (a MouseEvent). You’re going to have to figure how to get the needed document ID from that MouseEvent object. There’s not enough information here for anyone to be able to tell you exactly what to do. But it should be clear that you can only pass a non-empty string to doc().

Leave a comment