-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 1.0.1 workspaces does not work with scoped packages #4354
Comments
Same issue here. This worked in 0.28.4 |
Using the * notation in workspaces I also have this issue but specifically targeting each workspace works for me. e.g. package.json
Gives the same error. But: package.json
seems to work. |
Is there a mini repo that I can clone and reproduce this behavior so we can debug? |
The hint from @terrymunro works also in my case. If I replace |
That's interesting, I haven't observed this behavior. My packages are all scoped (let's say Not trying to say that this issue is invalid or something, I'm just curious as to what is the culprit behind this problem in order to not fall into it in the future. |
I tried to create a sample project but there it works 😳 In my project here at my company it does not work 🤔 |
I faced this issue as well. steps to reproduce: git clone https://github.com/storybooks/react-cdk.git
cd react-cdk
git checkout workspaces-issue
yarn it throws: yarn install v1.1.0
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@storybook%2fcdk-scripts: Not found".
info If you think this is a bug, please open a bug report with the information provided in "/home/usulpro/WebDev/_CDK/test/react-cdk/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
these packages aren't published yet I tried to change |
solved by specifying the package version: -"@storybook/cdk-scripts": "*"
+"@storybook/cdk-scripts": "^0.1.1-alpha" |
Can confirm this seems to be solving the same issue for me. I originally had specified "latest" everywhere I referenced my workspace packages. Going through and changing each instance to an actual version specifier (eg. |
I can still reproduce this with
It does not seem to recognise that the package is within the workspace. |
This is still an issue in [email protected] We have a curious case where it works in some environments, e.g. locally but not in cloud infra. |
Has anyone tested this in yarn 1.7.0? If i'm getting the package structure right, then this seems fixed?
|
I had this same issue but for me it was because the package I was referencing was more than one level deep in the folder path and needed a globstar
|
Yup. I can confirm this as well. Adding a version works to the scoped package in |
I have the same issue on yarn 1.22.5 |
|
wtf |
I don't really have anything of value to add to this issue, other than to say that this solution fixed everything for me after spending 2 entire days tearing my hair out. This says to me that either: There's probably truth in both statements tbh |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
It try to use the new workspaces feature. All my packages are scoped to a private scope
@me/...
. Unfortunately it does not work. I get the errorError: https://registry.yarnpkg.com/@me%2fbar: Not found
By the way: the packages are not deployed to npm at the moment. It only exist locally at the moment.
If the current behavior is a bug, please provide the steps to reproduce.
Just create a new project and call your packages
@foo/...
What is the expected behavior?
Should link locally all packages (regardless if there are deployed or not)
Please mention your node.js, yarn and operating system version.
Node 8.4.0
Yarn 1.0.1
macOS sierra
The text was updated successfully, but these errors were encountered: