All Questions
Tagged with google-cloud-firestore vue.js
707
questions
0
votes
0
answers
17
views
How does onSnapshot on firebase/firestore work?
I'm new with firebase. I'm building a simple app with Vuejs and Firebase by following a Udemy course.
I'm curious about a strange thing. I'm trying to understand but I can't.
I know, the onChange ...
-1
votes
1
answer
47
views
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'displayName') when using firebase data in app
I am using firebase 9 and vue3 and receive this error when trying to use the data from a doc. I console.log the data and it shows correctly but it states it is undefined. I have also made sure my data ...
0
votes
0
answers
51
views
How to convert Firestore collection into regular array in VueFire/VueJS 3.0?
I'm new to the whole Firebase scene with Vue3 (and got started using VueFire yesterday)...
I dont know if this is a very specific use-case but I've been using PrimeVue's PickList component. This ...
0
votes
0
answers
30
views
How to set up a Firestore listener (to get realtime updates) inside a libs file instead of inside a Vue SFC?
I'm working on a chat app that uses Vue3 and Firebase. My project is structured in the following manner:
src/pages - contains the .vue files of the pages
src/services/firebase.js - contains the code ...
0
votes
0
answers
12
views
How to set a Document ID in firebase based on the data of the submitted vue3 form [duplicate]
There is a code:
import { collection, addDoc } from 'firebase/firestore';
import { requestGiftCard } from '@/firebase';
const name = ref();
const surname = ref();
const email = ref();
const number = ...
0
votes
1
answer
34
views
How do I get over a Firebase rules problem I'm having when I think my user configurations should allow read/write
I am logged into my app using GoogleAuthProvider and into my browser as [email protected]
My app project rules looks like this
On a view I have a toggle that triggers a setDoc
When I use that ...
0
votes
0
answers
25
views
i can't get file from firestore
I'm trying to archive the photos that I request to insert from a form using vue, which then interfaces with a firestore repository to save the image and with a firebase db for the rest of the data, on ...
0
votes
1
answer
35
views
Javascript Firebase Arrays
I am working on a Firebase project and we are using Vue.js for the framework.
Is there a way to Create, Update, and Delete elements in a Firebase cloud document?
For example, we have a collection ...
1
vote
0
answers
159
views
firebase emulators:exec not running vitest tests correctly
I'm setting up my first test suite with firestore in a relatively fresh vue3/vite/vitest project.
I have a test file, firestoreRules.test.js that works fine when I start the firestore emulator with ...
0
votes
1
answer
280
views
How can I populate meta tags before the page is completely loaded in Nuxt?
I have a Nuxt3 application where a blog article is loaded from Firestore using an ID that is passed as a path variable. To make my site more SEO friendly, I want to populate Nuxt title and meta tags (&...
1
vote
1
answer
51
views
How To Fetch Subcollection In the Same Read As Parent Collection (Or restructure data?) [duplicate]
I have a Vue 3 app using Firebase auth and Firestore to record the outcomes of Mario Kart races. This is just a fun side project to get to know Vue and Firebase better.
I am new to none relational ...
0
votes
0
answers
56
views
Firestore with vuejs
I have successfully setup firebase in my project to use realtime database and it works fine.
When I switched to firebase firestore I get this error in my console :
firebase_firestore.js?v=bf36d3e7:...
1
vote
2
answers
58
views
Vue Firebase Storage delete image method is getting user does not have permission to access error
Here is my delete method:
async deleteAvatar(path) {
console.log({ path });
try {
const imageRef = ref(storage, path);
console.log({ imageRef });
await ...
0
votes
0
answers
108
views
Cannot get data get data document in vue component with firestore
I cannot get the data from the firestore (firebase database) with vuefire in a vite project with Vue Option Api
I try to modify the database to know if the firebase configuration is wrong. But it ...
0
votes
0
answers
33
views
Vue Firestore Array Sort Not Working As Expected
I have a document with an order property. This contains a list of strings, which are IDs or each doc in the data subcollection. The purpose is to order each doc. I have buttons to move them up and ...