-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Adds missing peer dependency in @emotion/styled #1260
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
Conversation
Hm, this is indeed unfortunate. It would be incorrect (maybe not incorrect, but at least not developer friendly) to warn I admit this is some problem that ideally would be addressed - but I'm not sure what's the best way to fix it and provide good DX at the same time 🤔 |
Yarn supports optional peer dependencies; would that be ok if I was marking |
This will still warn users about missing peer dep when using managers which don't understand the meta property, right? |
@Andarist Yep. I've tried to work with both npm and pnpm on this and while npm didn't make clear whether they would implement it or not (they considered making peer dependencies optional by default), pnpm emitted an intent to implement as well: yarnpkg/rfcs#105 (comment) |
I'm a little confused about this, I can't see a peerDependency in emotion/packages/styled-base/package.json Lines 1 to 43 in ca3ad1c
|
What:
@babel/core
is added as a peer dependency.Why:
@emotion/styled-base
has a peer dependency on@babel/core
, but this package doesn't provide it - which is invalid.Checklist: