You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug occured after upgrading storybook from 6.5.16 to 7.1.0.
First yarn install succeeds, however next ones based on yarn.lock are failing.
(precision: yarn install will finish with warnings but modules seem to be broken).
Warning after first install
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["strip-ansi@^6.0.1"] is trying to unpack in the same destination "/.../.cache/yarn/v6/npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity/node_modules/strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/.../.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["strip-ansi@^6.0.0"] is trying to unpack in the same destination "/.../.cache/yarn/v6/npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity/node_modules/strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["string-width@^4.2.0"] is trying to unpack in the same destination "/.../.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
error during a simple CI command
yarn run v1.22.19
$ jest
Error [ERR_REQUIRE_ESM]: require() of ES Module /workspace/supermood/platform/design-system/node_modules/string-width/index.js from /workspace/supermood/platform/design-system/node_modules/cliui/build/index.cjs not supported.
Instead change the require of index.js in /workspace/supermood/platform/design-system/node_modules/cliui/build/index.cjs to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/workspace/supermood/platform/design-system/node_modules/cliui/build/index.cjs:291:21)
at Object.<anonymous> (/workspace/supermood/platform/design-system/node_modules/yargs/build/index.cjs:1:60678)
at Object.<anonymous> (/workspace/supermood/platform/design-system/node_modules/yargs/index.cjs:5:30)
at _yargs (/workspace/supermood/platform/design-system/node_modules/jest-cli/build/run.js:30:39)
at buildArgv (/workspace/supermood/platform/design-system/node_modules/jest-cli/build/run.js:143:26)
at Object.run (/workspace/supermood/platform/design-system/node_modules/jest-cli/build/run.js:118:24)
at Object.<anonymous> (/workspace/supermood/platform/design-system/node_modules/jest-cli/bin/jest.js:16:17)
at Object.<anonymous> (/workspace/supermood/platform/design-system/node_modules/jest/bin/jest.js:12:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
We found an alternative solution using npm for now but we look forward to being able to use yarn again.
Describe the bug
Bug occured after upgrading storybook from 6.5.16 to 7.1.0.
First
yarn install
succeeds, however next ones based on yarn.lock are failing.(precision:
yarn install
will finish with warnings but modules seem to be broken).Warning after first install
error during a simple CI command
We found an alternative solution using
npm
for now but we look forward to being able to use yarn again.To Reproduce
No response
System
Additional context
package.json
The text was updated successfully, but these errors were encountered: