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
In my understanding, not having this dependency in the web package should throw an error. But it doesn't, not even if I add strictPeerDependencies: true.
Why is this the case? I've tried everything, but cannot figure this out. pnpm list -r doesn't list it either.
pnpm list -r
Legend: production dependency, optional only, dev only
@myproject/shared .../pnpm_peers/packages/shared (PRIVATE)
dependencies:
lodash 4.17.21
@myproject/web .../pnpm_peers/web (PRIVATE)
dependencies:
@myproject/shared link:../packages/shared
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to understand the basics of workspace and peers.
I created the following minimum repro setup:
The key is the
part in shared/package.json
In my understanding, not having this dependency in the web package should throw an error. But it doesn't, not even if I add
strictPeerDependencies: true
.Why is this the case? I've tried everything, but cannot figure this out. pnpm list -r doesn't list it either.
You can also view it here: https://github.com/hyperknot/bug_repro/tree/main/pnpm_peers
Beta Was this translation helpful? Give feedback.
All reactions