FirebaseExtended / FirebaseExtended/rxfire

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

Open
#59 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
149
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/9848115/189679402-1b878a88-ce07-4a71-896c-9433a90f2be8.png)

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

![image](https://user-images.githubusercontent.com/9848115/189679287-9711ffae-fa4e-4e5b-90ce-7efafbaf3f18.png)

If some of you want to replicate this issue, you can clone this [link ](https://github.com/GiuntaLucas/astro-satellit.git) 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"
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.