You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unsure if this is an actual bug but for me, as a user, the printed error is confusing and @merceyz has suggested that this looks awfully similar to a bug already fixed in #2915
And according to @merceyz this likely shouldn't be reported as an error as per:
[...] Note that peer dependencies can also be listed as regular dependencies; in this case, Yarn will use the package provided by the ancestors if possible, but will fallback to the regular dependencies otherwise https://yarnpkg.com/configuration/manifest#peerDependencies
Note that the reason why this setup~ is the problem in the first place is that I've forgotten to install @emotion/babel-plugin in the workspace itself.
If you have this error message and just wanna fix it (and didn't follow the link in the original post 😬), the fix from this comment worked for me (copied from link, but adapt to your trouble-making packages):
Self-service
Describe the bug
I'm unsure if this is an actual bug but for me, as a user, the printed error is confusing and @merceyz has suggested that this looks awfully similar to a bug already fixed in #2915
I was testing if some Emotion packages are PnP-compatible as I had a strong suspicion that they aren't (and after my investigation, I've prepared this PR to fix the issue). After confirming the problem I've attempted to fix this in the created workspace using
packageExtensions
and I've declared@emotion/babel-plugin
as@emotion/styled
's peer dep:https://github.com/Andarist/berry-ancestor-breaking-chain-repro/blob/525c3b165f624039a41c27a47235a8302b855fbb/.yarnrc.yml#L10-L12
but this was actually not needed because it was already declared as its dependency:
https://github.com/emotion-js/emotion/blob/4efa2cb3f45456bc793fb7b7f4d2382d9742cc35/packages/styled/package.json#L15
And according to @merceyz this likely shouldn't be reported as an error as per:
Note that the reason why this setup~ is the problem in the first place is that I've forgotten to install
@emotion/babel-plugin
in the workspace itself.To reproduce
Environment
System: OS: macOS Mojave 10.14.5 CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz Binaries: Node: 14.16.1 - /private/var/folders/ws/tlwxqvs5407f21nxy7w8bgr80000gp/T/xfs-8034a477/node Yarn: 3.1.1 - /private/var/folders/ws/tlwxqvs5407f21nxy7w8bgr80000gp/T/xfs-8034a477/yarn npm: 8.2.0 - ~/.nvm/versions/node/v14.16.1/bin/npm
Additional context
No response
The text was updated successfully, but these errors were encountered: