firebase / firebase/firebase-js-sdk
FR: Make firebase compatible with Yarn2 pnp and PNPM
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
Edit by @hsubox76 : Just to note this same issue affects PNPM and the same fix should address both.
### [REQUIRED] Describe the problem
I get an error when bundling with Yarn 2 and firebase:
```
(node:82642) [MODULE_NOT_FOUND] Error: @firebase/database tried to access @firebase/app, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
```
#### Steps to reproduce:
I'm building a create-react-app application with yarn2 with pnp that depends on firebase, and it outputs the following error:
```
(node:82642) [MODULE_NOT_FOUND] Error: @firebase/database tried to access @firebase/app, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
```
Contributor guide
Assessment
This issue has not been assessed yet.