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()
.
- [Vuejs]-Problem when triggering a Vue function to change some component field
- [Vuejs]-How to apply a class according to the route in Vue
Source:stackexchange.com