Skip to content

dconeybe/JsIssue9477

Repository files navigation

Quasar Firestore toJSON() Reproduction

This project is a minimal Vue 3 / Quasar / Vite application to reproduce the bug reported in firebase-js-sdk issue #9477.

Setup

  1. Install dependencies:

    yarn install
  2. Configure Firebase: Open the file src/boot/firebase.ts and replace the placeholder Firebase configuration with your actual Firebase project configuration.

    const firebaseConfig = {
      projectId: 'YOUR_PROJECT_ID',
      apiKey: 'YOUR_API_KEY'
    };
  3. Create a test document in Firestore: In your Firebase project's Firestore database, create a collection named test-collection and a document with the ID test-doc. The document can have any data, for example a field name with value 'test'.

Running the application

  1. Start the development server:

    npm run dev
  2. Open the application in your browser. The application will open automatically at http://localhost:9000.

  3. Open the browser's developer console.

  4. Click the "Fetch Document" button.

  5. Observe the console output. The application will log the DocumentSnapshot.toJSON() and QuerySnapshot.toJSON() output to the console.

About

Repro app for https://github.com/firebase/firebase-js-sdk/issues/9477 (Type definitions seem out of step with SDK)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors