Skip to content

Conversation

@lowet84
Copy link

@lowet84 lowet84 commented Feb 23, 2023

There is currently an issue where the resolved path is not correct if the project is part of a workspace.
If the main project has a path: ".../my-project/"
sub-project has a path: ".../my-project/packages/sub-project/"

then the node_modules will be located at ".../my-project/node_modules" the resolved modulePath will be ".../my-project/packages/sub-project/node_modules". The latter path does not exist when working inside a project with workspaces.
The env variable "process.env.npm_config_local_prefix" provides a path to the project root dir.

@pipe01 pipe01 merged commit a918e00 into pipe01:master Dec 18, 2023
@pipe01
Copy link
Owner

pipe01 commented Dec 18, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants