Skip to content

Named export 'collectionData' not found. The requested module 'rxfire/firestore' is a CommonJS module, which may not support all module.exports as named exports. #59

@GiuntaLucas

Description

@GiuntaLucas

Hello, i'm using rxFire into my Astro application using RxFire into one component to retrieve my data from firestore.

During the build i have an issue about the collectionData export wich is not found.
This is the error i get :

image

When i try to apply the fix i have another error, but seems no sence to me.

image

If some of you want to replicate this issue, you can clone this link and run npm run build

I'm using this config:

"dependencies": {
    "@astrojs/svelte": "^1.0.0",
    "astro": "^1.2.1",
    "firebase": "^9.9.4",
    "rxfire": "^6.0.3",
    "rxjs": "^7.5.6",
    "svelte": "^3.50.1"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions