We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I have the following package structure:
some-workspace
foo
bar
baz
The dependencies of these packages are as such:
workspaces
dependencies
"foo": "workspace:*"
"bar": "portal:../some-workspace/bar"
resolutions
"bar/foo": "portal:../some-workspace/foo"
Up to Yarn v3.1.1, this setup worked fine - no errors, no real funkiness.
With Yarn v3.2.0, when I run yarn install inside baz, I'm now seeing an error occur with this kind of setup, along these lines:
yarn install
➤ YN0001: │ Error: Assertion failed: Writing attempt prevented to /some-workspace/bar/node_modules/foo which is outside project root: /baz
I've created a reproduction here: https://github.com/spiltcoffee/yarn-workspace-portal-issue
System: OS: Windows 10 10.0.19044 CPU: (8) x64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz Binaries: Node: 16.13.2 - C:\Temp\xfs-82221d88\node.CMD Yarn: 3.2.0 - C:\Temp\xfs-82221d88\yarn.CMD npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
I've also tried the following in an attempt to fix the issue:
portal:
packageExtensions
.yarnrc.yml
canary
The text was updated successfully, but these errors were encountered:
How to delete yarn3.2 ?
Sorry, something went wrong.
@IU520CF Unsure what you mean? Do you mean how to downgrade to an older version of yarn?
Yes, downgrade yarn2
I upgraded yarn3 2. I found that I can't use it. Finally, I started it with NPM. The package is bigger
The issue should be fixed via: #4206 Also, you can work around it by adding nmSelfReferences: false into .yarnrc.yml
nmSelfReferences: false
larixer
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Self-service
Describe the bug
I have the following package structure:
some-workspace
foo
bar
baz
The dependencies of these packages are as such:
some-workspace
has aworkspaces
key listingfoo
andbar
bar
has adependencies
entry for"foo": "workspace:*"
baz
has adependencies
entry for"bar": "portal:../some-workspace/bar"
baz
has aresolutions
entry for"bar/foo": "portal:../some-workspace/foo"
Up to Yarn v3.1.1, this setup worked fine - no errors, no real funkiness.
With Yarn v3.2.0, when I run
yarn install
insidebaz
, I'm now seeing an error occur with this kind of setup, along these lines:To reproduce
I've created a reproduction here: https://github.com/spiltcoffee/yarn-workspace-portal-issue
Environment
Additional context
I've also tried the following in an attempt to fix the issue:
foo
that has the sameportal:
packageExtensions
key to the.yarnrc.yml
canary
(it appears to just be Yarn v3.2.0 at the moment anyway?)The text was updated successfully, but these errors were encountered: