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.

Compatibility with yarn 2 (or yarn 1 PnP mode)

See original GitHub issue

Current Behavior

Yarn v2 got a stable release today, and it uses PnP (instead of node_modules) exclusively Right now tsdx test, tsdx build (and maybe others) have some issues with it (specially with finding the typescript package if it is not globally installed, which would be my case).

Desired Behavior

TSDX should work out of the box with yarn v2 / yarn v1 PnP mode

Suggested Solution

Fix TSDX build configurations / upgrade build packages.

Who does this impact? Who is this for?

People who use yarn v1 PNP mode and/or yarn v2.

Describe alternatives you’ve considered

N/A

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jaredpalmercommented, Jan 25, 2020

Gonna press pause until this is sorted out: https://github.com/yarnpkg/berry/issues/766#issue-555117544

1reaction
agilgur5commented, Apr 7, 2020

I’ll mark this as PR welcome. node_modules is referenced in a few places and I know some of our dependencies rely on it too, so I don’t think the amount of work for this is trivial. We’d also have to support both versions too, not just Berry. And probably run tests against both versions in CI too.

Not really a high priority given amount of work, other priorities, and that the community hasn’t really moved on to Berry as a whole (including little interest in this issue and the fact that it’s not the default version).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plug'n'Play | Yarn - Package Manager
To address this problem, Yarn ships with a "loose" mode which will cause the PnP linker to work in tandem with the node-modules...
Read more >
It's 2021, and You Should Switch to Yarn 2 - Atomic Spin
1. Backwards Compatibility with node_modules. Yarn 2 uses a new Plug'n'Play (PnP) architecture that is a huge departure from how npm projects ...
Read more >
Advanced package manager features for npm, Yarn, and pnpm
Loose mode is a compromise between PnP strict mode and the traditional node_modules dependency resolving mechanism. The difference is that Yarn ...
Read more >
Yarn v2 PnP is simply a lifesaver if you have a medium+ sized ...
That said, I think yarn 2's PnP + zero installs (https://yarnpkg.com/features/zero-installs) is lovely with CI. Instead of tacking 40+ seconds to resolve deps ......
Read more >
[AskJS] Do you use Yarn v2? : r/javascript - Reddit
yarn v3.1 has a pnpm compatible linker which is (to my experience) the best of both worlds. Installation speed comparable (if not equal)...
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