-
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
workspaces install fails with private dependencies #5225
Comments
I seem to be unable to reproduce:
I'm also not quite sure what you mean with public vs private. All the dependencies are treated as local links, so public vs private is not a thing that should matter, as none of hte modules need to be published. If you
Would it be possible to share your package.json's, or make a minimal reproduction? |
@rally25rs you're absolutely right, I'm an idiot. Thank you for the follow up. Turns out my
Instead of:
So it wasn't finding a Thank you for the quick reply and gut check! |
Hah, oops, that would do it 😄 |
@ianstormtaylor @rally25rs is it possible to have For example:
|
Btw it works as expected if Documentation mentions Github deps resolution here: |
I also noticed that the folder that |
* yarn add @stencil/{angular,react}-output-target + updated @stencil/core * Add reactOutputTarget to amplify-ui-react * Add template from https://github.com/ionic-team/stencil-ds-react-template * Update component definitions via stencil build * Remove --dev flag to trigger reactOutputTarget * Remove unused variable * stencil build * Initial build of @aws-amplify/ui-react * Remove @stencil/state-tunnel ionic-team/stencil-ds-output-targets#10 * Fix resolution of @aws-amplify/ui-components/loader * Working build of @aws-amplify/ui-react * Fix amplify-ui-react main/module paths * Add AmplifyAuthenticator stories * Don't build e2e/spec/stories * Initial @aws-amplify/ui-angular build * fix: Rename folders to match package name so yarn workspaces works yarnpkg/yarn#5225 (comment) * Update yarn.lock with @stencil/state-tunnel removed * Revert 0e5398b * Add @aws-amplify/ui-angular template https://github.com/ionic-team/stencil-ds-plugins-demo/blob/master/packages/component-library-angular/package.json * yarn workspace can't resolve "latest" if the package isn't published * Remove unused ValueAccessorConfig * Add @aws-amplify/ui-vue package * Revert "Add AmplifyAuthenticator stories" This reverts commit 08cbb08. * Clean up @aws-amplify/ui-react package.json * Clean up @aws-amplify/ui-vue package.json * Clean up @aws-amplify/ui-angular package.json * Update yarn.lock * Remove & ignore auto-generated files * Suppress auto-generated typings in diffs * Suppress auto-generated readmes in diffs * Remove parts of CRA-generated .gitignore * Remove yarn.lock from PR diffs * Update yarn.lock to match @stencil/core * Update build with updated @stencil/core * Add publicConfig to @aws-amplify/ui-* packages, per #4706
Mine was referencing the wrong name. instead of |
please note, that you should name your "experimental" versions: {
"name": "something",
"version": "0.4.0-alpha", // `alpha-0.4.0` will not produce this err
} |
I had issues with wrong version number. (e.g. I was adding a local dependency of version |
I had an unneeded package.json file hiding in the parent folder
|
For others coming this way: For me the solution was to update yarn. For some reason i still had 1.x on my machine.
|
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
Right now
yarn install
fails if you have a private monorepo using workspaces and a package has a dependency on a private local package. It tries to find the private dependency in the registry, but it doesn't exist there, and then it fails with:If the current behavior is a bug, please provide the steps to reproduce.
If you have a private monorepo with a workspaces structure like:
And the
private-module-a
has a dependency onprivate-module-b
.This is an issue in private monorepos, where you'll end up with lots of packages that are private to the repo itself, but that depend on each other. It never comes up with public monorepos because I don't think it makes sense for a public package to have a private dependency.
What is the expected behavior?
Yarn should see that one of the dependencies is already local in the workspace, and not try to install it from the registry at all, just symlink it.
Please mention your node.js, yarn and operating system version.
Here's a similar Lerna issue: lerna/lerna#998
I tried to search through the issues to see if this was solved already, but couldn't find anything recent that was detailing this exact problem, so figured I'd open it. Thanks!
The text was updated successfully, but these errors were encountered: