question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support yarn --pnp

See original GitHub issue

With their new versions, yarn has now a option called “Plug’n’Play” (there isn’t any official doc yet) which removes the node_modules/ folder

Do you have plan to support this new feature?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
teoxoycommented, Aug 6, 2019

@vlasenko implemented it.

Yarn v2 has an optional package called @berry/pnpify which wraps typescript and now eslint. Installing pnpify and then adding this vscode setting "eslint.nodePath": ".vscode/pnpify" makes eslint work in a pnp environment.

1reaction
dbaeumercommented, Aug 6, 2019

@Teoxoy cool to hear. I do have a question: how were you able to solve this in yarn without any changes to ESLint?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plug'n'Play | Yarn - Package Manager
PnP API. Are you a library author trying to make your library compatible with the Plug'n'Play ... Native support; Support via plugins; Incompatible....
Read more >
Yarn PnP Support Status · Issue #16980 · angular/angular-cli
As of 9.0, the Angular CLI does not natively support Yarn 2.0 and its new package management strategy named Plug'n'Play (PnP).
Read more >
Support Yarn PnP with ES modules (.pnp.cjs) : WEB-48961
Configure yarn 2 in a project: yarn set version 2 (e.g. 2.4.0); Run yarn install -> .pnp.cjs will be created in the project...
Read more >
Migrating a monorepo from Lerna to Yarn 3 with PnP and Zero ...
... a 15 minute yarn install I said “enough is enough” and I decided to migrate to the recently announced [Yarn 3][yarn-3] with...
Read more >
Yarn v2 PnP is simply a lifesaver if you have a medium+ sized ...
I meant special casing in the sense that this a conscious effort specifically targeted at Typescript support, as opposed to some generic design...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found