Replies: 1 comment
-
Anyone who can help with this? Any other place I could ask? Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I followed the instructions for Hybrid PnP + node_modules mono-repo: from the Recipes.
Does that support referencing other packages in the same repository from the workspace for which the
node-modules
linker is enabled?Whenever I provide the
yarn.lock
file as instructed, local packages cannot be resolved any more:Sample repository here: yarn-pnp-react-native
Note when configuring the repository as suggested in #4232 local dependencies are resolved correctly. However, then when running
yarn
in thenode-modules
linked workspaces,node_module
resolution is provided for all workspaces (which understand as per #4323 to be the intended behaviour).In any case, I can see only the following options:
node_modules
all over when runningyarn install
from the wrong placenode-modules
linker isolated to provided project, but local dependency resolution does not workWhat I am looking for is to have local dependency resolution without 'leaking' the
node-modules
linker into the other workspaces.Any help and pointers much appreciated 😃
Beta Was this translation helpful? Give feedback.
All reactions