firebase / firebase/firebase-js-sdk

FR: Make firebase compatible with Yarn2 pnp and PNPM

Open
#3,707 12 comments 13 reactions 1 assignee Claimed by @hsubox76 View on GitHub
api: core api: database feature request
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

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.