[Bug?]: workspace:^ and workspace:~ do not work
See original GitHub issueSelf-service
- I’d be willing to implement a fix
Describe the bug
According to the docs, workspace:^ should resolve to the caret version of the workspace being referenced. Instead, trying to install fails, and running yarn npm publish will publish without any warnings and will not replace the protocol as expected. workspace:* works fine.
To reproduce
"dependencies": {
"@scope/foo": "workspace:^"
}
Yields:
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: @scope/foo@workspace:^: Workspace not found (@scope/foo@workspace:^)
Environment
System:
OS: macOS 11.6
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Binaries:
Node: 14.18.1 - /private/var/folders/zz/1yf3kx7s15b1101fs4g28ds40000gn/T/xfs-a9b8b408/node
Yarn: 3.0.2 - /private/var/folders/zz/1yf3kx7s15b1101fs4g28ds40000gn/T/xfs-a9b8b408/yarn
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
Additional context
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Troubleshoot WorkSpaces issues - AWS Documentation
The following information can help you troubleshoot issues with your WorkSpaces. Enabling advanced logging. To help troubleshoot issues that your users ...
Read more >[BUG] Workspaces are not documented, don't appear to work
This blog post says that npm 7 comes with a new feature called workspaces: https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli/ ...
Read more >Google Workspace Known Issues
We work on isolating and fixing every product issue that we're aware of. Some issues might not be listed here. We characterize known...
Read more >Fix workspace bugs - Adobe video & audio apps
The only way to fix this is to create an empty startup project with a prefered sequence and layout setting. Save in ...
Read more >Fixing Workspace Permission Errors
If you are receiving the following error, the permissions on your Student Workspace are not correctly set. ... Right click on “public_html” and...
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 Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

3.1 got released today. As for the documentation being ahead of the releases, we don’t have good alternative available for now.
Thanks for the information regarding this feature. I guess the main concern then is that this is referenced in the current stable documentation.