-
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
Local workspaces not being symlinked to node modules (when circular deps exist) #5538
Comments
@milesj I clone your beemo repo and ran the
the @beemo pcakges are symlink all right, including
Indded the @beemo packages there are not symlink, asking yarn to explain:
looks like there are 2 different versions: This seems right to me, not quite sure what the problem you were seeing... can you elaborate? |
Weird, this seems to be working again after I ran I'll leave this open for a bit longer to see if I can replicate. |
I had an issue where yarn did not link any local packages and |
I'm almost certain that I ran into this. I ended up fixing it using some However, at some point I would like to create a test case and try to troubleshoot it better... |
It still occurs for me, but very randomly. I have yet to figure out a pattern on why it happens. |
same problem |
I have a work around for some of the the issue for OSX. If yarn cannot find your link after you If you use the @org notation, then you need to create a folder for the org and create the symlink under that. |
I'm having this issue. All my packages depend on one package using When the dependency package was at |
I had to delete Ideally modifying the versions in package.json of all workspaces should be enough, with subsequent |
Do you want to request a feature or report a bug?
Bug report. I have this project called Beemo, which is a monorepo with workspaces/packages like
@beemo/cli
,@beemo/core
, and@beemo/driver-*
. Beemo is a configuration management layer, and as such, I have another NPM module called@milesj/build-tool-config
, which depends on the same released version (0.13). Basically Beemo is using Beemo to configure itself, and technically I have a reference chain like so:When I
yarn install
, the dependent versions are hoisted to the root, like the example below. At this point, local /packages are not symlinked to /node_modules, as I assume Yarn believes that path is already taken. BUT, the@milesj/build-tool-config
package doesn't depend on all@beemo
packages, yet the packages that aren't depended on DO NOT get symlinked either (for example,@beemo/driver-mocha
is not symlinked).If I utilize
nohoist
to not hoist the@milesj/build-tool-config
packages to the root, like the following, local packages STILL DO NOT symlink.Because of this, I'm unable to work on this project, or release new versions.
What is the current behavior?
Local /packages are not symlinked whatsoever, with hoisting, and without hoisting.
What is the expected behavior?
Local /packages should be symlinked to /node_modules. This used to work in Yarn 1.3, but seems to have broken in 1.5. This might be related to the new
nohoist
feature.Please mention your node.js, yarn and operating system version.
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: