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

[BUG] Yarn build fails with "Workspaces can only be enabled in private projects" #2972

Closed
2 tasks done
IcedQuinn opened this issue Aug 5, 2024 · 3 comments
Closed
2 tasks done
Labels
BUG Something isn't working

Comments

@IcedQuinn
Copy link

Is this a bug in companion itself or a module?

  • I believe this to be a bug in companion

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Yarn seems to have set up some kind of restriction to building projects.

error Workspaces can only be enabled in private projects.

I was ab

Steps To Reproduce

  1. Check out the repo
  2. Try to build it (ex. tools/yarn.sh)

Expected Behavior

it should build ;)

Environment (please complete the following information)

- OS: Void Linux
- Browser: N/A
- Companion Version: `main`
- Yarn: 1.22.19

Additional context

I was able to get around this by adding private: true, to the package.json file at the top level of the repository.

@IcedQuinn IcedQuinn added the BUG Something isn't working label Aug 5, 2024
@Julusian
Copy link
Member

Julusian commented Aug 5, 2024

How did you install yarn?
We use yarn v4, which I thought 1.22 would automatically invoke for you, but it appears to not be for you causing this error

@IcedQuinn
Copy link
Author

How did you install yarn?

System package manager (Void Linux.)

@Julusian
Copy link
Member

Julusian commented Aug 8, 2024

I think you will need to install it via the officially documented route, as we require v4, it won't work properly/correctly with v1
https://yarnpkg.com/getting-started/install

@Julusian Julusian closed this as completed Aug 8, 2024
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