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.

[Bug?]: workspace:^ and workspace:~ do not work

See original GitHub issue

Self-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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
arcaniscommented, Oct 25, 2021

3.1 got released today. As for the documentation being ahead of the releases, we don’t have good alternative available for now.

0reactions
bfrickacommented, Oct 25, 2021

Thanks for the information regarding this feature. I guess the main concern then is that this is referenced in the current stable documentation.

Read more comments on GitHub >

github_iconTop 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 >

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