Documentation Gap: Enabling Yarn PnP for New Projects #6673
Unanswered
iain-neirfeno
asked this question in
Q&A
Replies: 1 comment
-
This should initialize a PnP project unless your global configuration changes the default |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
While Yarn documentation states that PnP is "the default installation strategy in modern releases of Yarn" https://yarnpkg.com/features/pnp, following the official installation guide https://yarnpkg.com/getting-started/install step by step does not result in a PnP-enabled project. This creates confusion for developers new to Yarn.
Current Documentation State
The installation guide provides these steps:
corepack enable yarn init -2
The PnP documentation extensively covers what PnP is and its benefits, but doesn't provide clear instructions for enabling it in a new project.
Impact
Suggested Improvements
Questions for Discussion
I welcome any insights from the Yarn team and community members on this documentation gap.
Beta Was this translation helpful? Give feedback.
All reactions