-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Make firebase compatible with Yarn2 pnp #3707
Comments
I found a few problems with this issue:
|
Thanks for the report! Are you able to get it to work using As the message states, I will keep it open as a feature request, but it is probably a low priority for us right now. |
This problem is still there. Currently workaround is adding this to packageExtensions:
# https://github.com/firebase/firebase-js-sdk/issues/3707
"@firebase/database@*":
peerDependencies:
"@firebase/app": "*"
"@firebase/app-types": "*" info about packageExtensions:
|
@Feiyang1 not sure what the correct place and practice for bumping feature requests is, and I understand the low priority, but for what it is worth our team would like to make use of Yarn PnP as well, and ended up here 🙂 |
Thank you @PutziSan for the headstart. I needed the following for firebase v9: "@firebase/auth@*":
dependencies:
"@firebase/app": "*"
"@firebase/app-types": "*"
"firebase@*":
dependencies:
"@firebase/auth": "*"
"@firebase/app": "*"
"@lipsurf/extension@*": # the project that uses firebase
dependencies:
"@vue/runtime-core": "*"
"@firebase/auth": "*"
"@firebase/app": "*"
"@firebase/app-types": "*" |
Revisiting this, looks like the error text is now something like:
The same fix (packageExtensions) works. It's a little hard to test if moving In that case the only real fix is to make a separate I think this will be a little easier after Admin migrates to consuming |
In case this is helpful to anyone else, this is what I needed in my
|
What's the warning message you're seeing? Skimming through it looks like these packages have |
Here is the Yarn output when I don't manually declare package extensions (ignore the redux alpha warning at the bottom): Then if I run So I'm not sure exactly what's going on because I'm not familiar with the "compat" library situation, but it seems like the source of the issue is emanating from the compat libraries. This is reinforced by the fact that if I manually install
Because I'm not familiar with the compat library architecture and how things actually depend on each other, I don't know the broader implications of these suggestions, their effects on tree shaking etc. Just trying to provide as much information as I can. |
Got it, thanks so much for the explanation. I think I understand the requirements now and will try to figure out the best way to address them. |
[REQUIRED] Describe the problem
I get an error when bundling with Yarn 2 and firebase:
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:
The text was updated successfully, but these errors were encountered: