Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn warning about workspaces #506

Closed
ledermann opened this issue Nov 23, 2022 · 2 comments
Closed

Yarn warning about workspaces #506

ledermann opened this issue Nov 23, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ledermann
Copy link

Describe the bug

Since release 1.2.0 I got this warning while installing packages with Yarn:

warning Workspaces can only be enabled in private projects.

In context:

yarn install v1.22.19
[1/5] 🔍  Resolving packages...
[2/5] 🚚  Fetching packages...
[3/5] 🔗  Linking dependencies...
warning Workspaces can only be enabled in private projects.
[4/5] 🔨  Building fresh packages...
[5/5] ♻️  Cleaning modules...
✨  Done in 2.41s.

After reverting to 1.1.1 it is fine again:

yarn install v1.22.19
[1/5] 🔍  Resolving packages...
[2/5] 🚚  Fetching packages...
[3/5] 🔗  Linking dependencies...
[4/5] 🔨  Building fresh packages...
[5/5] ♻️  Cleaning modules...
✨  Done in 2.28s.

Reproduction URL

https://stackblitz.com/edit/vitejs-vite-xpgczc

Reproduction

  1. Open new terminal in StackBlitz
  2. Run yarn check
  3. See the warning

Logs

No response

System Info

System:
    OS: macOS 13.0.1
    CPU: (20) arm64 Apple M1 Ultra
    Memory: 21.37 GB / 64.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.1.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.3 - /opt/homebrew/bin/npm
  Browsers:
    Brave Browser: 107.1.45.127
    Chrome: 107.0.5304.110
    Firefox: 107.0
    Safari: 16.1
  npmPackages:
    @sveltejs/vite-plugin-svelte: ^1.3.0 => 1.3.0
    svelte: ^3.53.1 => 3.53.1
    vite: ^3.2.4 => 3.2.4
@bluwy
Copy link
Member

bluwy commented Nov 23, 2022

Looks like yarnpkg/yarn#8580 happening for the new vitefu dep we added in 1.2.0. Not sure why yarn validates that for third-party packages, but I could fix this upstream nonetheless.

@bluwy bluwy removed the triage Awaiting triage by a project member label Nov 23, 2022
@ledermann
Copy link
Author

With vitefu 0.2.2 the warning is gone, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants