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
Using yarn classic, when installing nx, I get the following message:
warning Pattern ["wrap-ansi@^7.0.0","wrap-ansi@^7.0.0","wrap-ansi@^7.0.0"] is trying to unpack in the same destination "C:\\Users\\<USERNAME>\\AppData\\Local\\Yarn\\Cache\\v6\\npm-wrap-ansi-cjs-8.1.0-56dc22368ee570face1b49819975d9b9a5e
ad214-integrity\\node_modules\\wrap-ansi-cjs" as pattern ["wrap-ansi-cjs@npm:wrap-ansi","wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"]. This could result in non-deterministic behavior, skipping.
Then my Angular app fails to start with:
Unknown error: Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\<PROJECT_PATH>\node_modules\wrap-ansi\index.js from C:\Users\<PROJECT_PATH>\node_modules\yargs\node_modules\cliui\build\index.cjs not supported.
Instead change the require of index.js in C:\Users\<PROJECT_PATH>\node_modules\yargs\node_modules\cliui\build\index.cjs to a dynamic import() which is available in all CommonJS modules.
Expected Behavior
No errors during installation and no errors during app start.
GitHub Repo
No response
Steps to Reproduce
Use yarn classic to install Angular app with nx workspace
Current Behavior
Using yarn classic, when installing
nx
, I get the following message:Then my Angular app fails to start with:
Expected Behavior
No errors during installation and no errors during app start.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
1.22.19
Operating System
Additional Information
Pinning
cliui
version tov8
fixes the issue.The workaround was first discovered in this issue.
Related issue:
#17229
Is there any good reason why you haven't updated
cliui
yet?nx package.json
The text was updated successfully, but these errors were encountered: