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
Build: Upgrade to Yarn 3 #15682
Build: Upgrade to Yarn 3 #15682
Conversation
Nx Cloud ReportCI ran the following commands for commit c316086. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
The WC example, using a fancy ➤ YN0001: │ Error: Assertion failed: Writing attempt prevented to /tmp/storybook/addons/storyshots/storyshots-core/node_modules/@jest/transform which is outside project root: /tmp/storybook/examples/web-components-kitchen-sink
at lB (/tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:558:1626)
at Hie (/tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:558:2199)
at Rje (/tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:558:6585)
at Uie.finalizeInstall (/tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:543:24938)
at async Fe.linkEverything (/tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:303:13759)
at async /tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:306:4326
at async xe.startTimerPromise (/tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:275:3730)
at async Fe.install (/tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:306:4102)
at async /tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:348:14731
at async Function.start (/tmp/storybook/.yarn/releases/yarn-3.0.0.cjs:275:2287)
➤ YN0000: └ Completed in 1s 317ms
➤ YN0000: Failed with errors in 7s 603ms |
"babel-plugin-macros": "3.1.0", | ||
"fork-ts-checker-webpack-plugin": "6.2.13", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to set fixed versions because there are some incompatible versions range due to our webpack 4 & 5 mix in the monorepo (should be cleaned in SB 7)
It is a bug in the Until the nm linker fix lands, the workaround might be to reduce the number of |
The fix is available here: I have checked the fix on this branch and install finished without errors. To try the fix you can run: |
Awesome @larixer 👏🏻 ! I will update this PR with the provided "version" later today |
E2E statuses:
|
761ac12
to
4be968b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff @gaetanmaisse 🚀
4be968b
to
c316086
Compare
@gaetanmaisse FYI, I have tried to enable usage of hardlinks by Yarn 3 inside |
What I did
@storybook/core-common
@types
dependencyweb-components-kitchen-sink
How to test
-
yarn bootstrap --core
-
cd examples/official-storybook && yarn && yarn storybook
-
cd ../web-components-kitchen-sink && yarn && yarn storybook