Skip to content
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

Scripts from dependencies don't have access to their own dependencies binaries with PnP #6709

Closed
arcanis opened this issue Nov 20, 2018 · 0 comments

Comments

@arcanis
Copy link
Member

arcanis commented Nov 20, 2018

Do you want to request a feature or report a bug?

Repro:

$> yarn add --pnp canvas

This is because we obtain the list of dependencies using config.lockfileFolder in makeEnv, but since the dependencies are located inside their own folders (in the unplugged directory) Yarn doesn't see the real project as being the lockfileFolder - so it cannot find the .pnp.js file.

Cf:

/private/tmp/canvas/.pnp/unplugged/npm-canvas-2.1.0-9abbfee6051b16666332ad0a8a2fd142e29039a1/node_modules/canvas/.pnp.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant