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
peerDependency
for a link:*
dependency does not get resolved
#5523
Comments
I tried to reproduce in this repository this but I could not...
Could you share the reproduction? (or please point it out if something wrong) |
Hm, the only difference is I was doing |
You were unable to reproduce because you're using a pnpm workspace. This means the libs are all installed in This is indeed bugged without a workspace. You'd think it would make a symlink as |
I believe thats the same issue as #4842. Got a bit cryptic response there and don’t understand the underlying blocker. NPM does it with a flag and I’m pretty sure the latest version even enables the flag by default (see linked issue). Would be nice to have. Huge pain on monorepos |
I have the exact same problem for a very simple project. PS: I don't know if it's related but If I change |
While developing project
B
with a locally built dependencyA
that has apeerDependency: some-external-module
, I discovered that linking moduleA
toB
and installingsome-external-module
inA
does not result in successful resolution ofsome-external-module
dependency inpnpm
.pnpm version:
7.13.1
Code to reproduce the issue:
A
with apeerDependency: some-external-module
B
with dependencyA
B
install dependencyA
using its relative path, i.e.pnpm add ../module-A
B
install dependencysome-external-module
B
Expected behavior:
The project starts up succesfully
Actual behavior:
An error is thrown:
Module not found: Error: Can't resolve 'some-external-module'
Additional information:
MacOS Monterey 12.4
node v18.8.0
The text was updated successfully, but these errors were encountered: