This project is a minimal Vue 3 / Quasar / Vite application to reproduce the bug reported in firebase-js-sdk issue #9477.
-
Install dependencies:
yarn install
-
Configure Firebase: Open the file
src/boot/firebase.tsand replace the placeholder Firebase configuration with your actual Firebase project configuration.const firebaseConfig = { projectId: 'YOUR_PROJECT_ID', apiKey: 'YOUR_API_KEY' };
-
Create a test document in Firestore: In your Firebase project's Firestore database, create a collection named
test-collectionand a document with the IDtest-doc. The document can have any data, for example a fieldnamewith value'test'.
-
Start the development server:
npm run dev
-
Open the application in your browser. The application will open automatically at
http://localhost:9000. -
Open the browser's developer console.
-
Click the "Fetch Document" button.
-
Observe the console output. The application will log the
DocumentSnapshot.toJSON()andQuerySnapshot.toJSON()output to the console.