0👍
There’s a difference on how you initiate RTDB and Firestore. It’s not fully included on your code but you should pay attention on how you create a reference. Unlike on RTDB where you use firebase.database().ref()
, on Firestore, you create a document reference using firebase.firestore().doc()
.
Try this:
var store = firebase.firestore().doc('/status/' + user);
- [Vuejs]-Issue with CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. NET Core 3.1
- [Vuejs]-Vue keep line chart updated using props
Source:stackexchange.com