Lerna does not support yarn 2 workspace:* url type
See original GitHub issueLerna does not seem to support the new workspace:* version schema used in yarn2. This seems really strange to me given that the yarn documentation mentions Lerna immediately after the section in the documentation on workspace:* so I may be missing something here.
Expected Behavior
I would expect Lerna to understand this dependency format and resolve to the local workspace copy of the package.
Current Behavior
Lerna: ERR! Error: unsupported url type “workspace:”: “workspace:*”
Steps to Reproduce (for bugs)
Create a simple repo using yarn 2 with packages a and b
Run
yarn workspace a add b@workspace:*
Run lerna version
Your Environment
Executable | Version |
---|---|
lerna --version |
3.20.2 |
yarn --version |
2.0.0-rc.33 |
node --version |
12.16.1 |
OS | Version |
---|---|
NAME | VERSION |
Windows 10 | 17763 |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:44
- Comments:16
Top Results From Across the Web
Why Lerna and Yarn Workspaces is a Perfect Match for ...
With this setup, lerna completely dedicates the dependency and bootstrapping workflow to yarn workspaces.
Read more >Lerna does not support yarn 2 workspace:* url type -
Lerna does not seem to support the new workspace:* version schema used in yarn2. This seems really strange to me given that the...
Read more >Workspaces - Yarn
Yarn's workspaces are the low-level primitives that tools like Lerna can (and do!) use. They will never try to support the high-level feature...
Read more >Migrating our Monorepo to Yarn 2 | DoltHub Blog
At first, it was a dependency that was breaking our website build. ... Yarn 2 no longer supported this argument, so we used...
Read more >A guide through The Wild Wild West of setting up a mono repo ...
We will be using TypeScript, Yarn workspaces, Lerna, and Jest. ... These kinds of issues call for support of multi-package repositories directly in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
Waiting for this feature too 👍
Until this issue is resolved, would it make sense to remove this text from https://yarnpkg.com/features/workspaces#yarn-workspaces-vs-lerna? It is so far as I can tell factually incorrect.
If there is some sense in which it is correct, maybe there is some improvement to the wording that doesn’t have the same risk of misleading users into thinking some things will work that don’t.