[Bug] Yarn 2.4.0 reading parent .pnp.js for pnpApi when enableGlobalCache is false #2470
Labels
bug
Something isn't working
reproducible
This issue can be successfully reproduced
upholded
Real issues without formal reproduction
Describe the bug
I upgraded from Yarn 2.3.3 to 2.4.0 and am unable to run a yarn script in a child directory. I have the following folder structure:
As part of my root package I have pnpify installed so I can use eslint across all sub projects.
When you install the root, then enabled pnpify, then install lib, and then run any yarn command from the lib scripts you get the following error:
To Reproduce
I've created a demo repo to reproduce the issue here. These are the steps to setup the demo and what to expect:
Setup Steps
yarn install
in the root directoryyarn pnpify --sdk vscode
to install the sdksyarn install
in the lib directoryyarn dev
in the lib directoryYou should receive the following error message when you run
yarn dev
:Screenshots
N/A
Environment if relevant (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: