Resolution question in a workspace context #4252
Unanswered
lvauvillier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use pnpm workspaces with strict mode (hoisting=false).
I wonder how resolution works if I use solution 1 with workspaces (https://pnpm.io/faq#solution-1) to fix a submodule phantom dependency.
If I understand correctly the node_module architecture, in a workspace context, the dependency will not be added at the project root
node_module
, but in workspace's module folder witch will be located in.pnpm
.So, there is no way for the fixed submodule to access to the parent dependency. node will start to resolve the submodule symlink and never be able to access to the parent dependency as it will be also located in the .pnpm folder and not the root node_module.
Am I right ?
Beta Was this translation helpful? Give feedback.
All reactions