Skip to content
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

Error while creating pruned lockfile #17816

Closed
1 of 4 tasks
pvorona opened this issue Jun 27, 2023 · 3 comments · Fixed by #17853
Closed
1 of 4 tasks

Error while creating pruned lockfile #17816

pvorona opened this issue Jun 27, 2023 · 3 comments · Fixed by #17853

Comments

@pvorona
Copy link

pvorona commented Jun 27, 2023

Current Behavior

When building the project with @nx/webpack:webpack executor and "generatePackageJson": true option error is thrown:
Screenshot 2023-06-27 at 14 33 34

Expected Behavior

No error is thrown

GitHub Repo

No response

Steps to Reproduce

Nx Report

$ /Users/pavelvorona/Projects/DappBack/dappback/node_modules/.bin/nx report
>  NX  Falling back to ts-node for local typescript execution. This may be a little slower.
  - To fix this, ensure @swc-node/register and @swc/core have been installed

 >  NX   Report complete - copy this into the issue template

   Node   : 18.16.0
   OS     : darwin arm64
   yarn   : 1.22.19
   Hasher : Native
   
   nx                 : 16.3.2
   @nx/js             : 16.3.2
   @nx/jest           : 16.3.2
   @nx/linter         : 16.3.2
   @nx/workspace      : 16.3.2
   @nx/devkit         : 16.3.2
   @nx/eslint-plugin  : 16.3.2
   @nx/node           : 16.4.0
   @nx/react          : 16.3.2
   @nrwl/tao          : 16.3.2
   @nx/vite           : 16.3.2
   @nx/web            : 16.3.2
   @nx/webpack        : 16.3.2
   typescript         : 5.0.4
   ---------------------------------------
   Local workspace plugins:
   	 @dappback/common-client
   	 @dappback/common
   ---------------------------------------
   The following packages should match the installed version of nx
     - @nx/[email protected]
     - @nrwl/[email protected]
   
   To fix this, run `nx migrate [email protected]`

✨  Done in 1.08s.

Failure Logs

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

I added debug logs to yarn-parser.js:244:47 to see what causes the error and it looks like the package string-width-cjs is not available in the existingKeys map. Listing out all the keys shows that there is a key string-width (without -cjs postfix).
Running npm ls shows that firebase-tools depend on this package.
Screenshot 2023-06-27 at 14 36 05
A lot of other packages depend on string-width (without -cjs)
Screenshot 2023-06-27 at 14 43 19

@cwoebker
Copy link

@pvorona This is already reported and discussed here #17440 and here #17329 I believe.

@meeroslav
Copy link
Contributor

Closing as duplicate of #17440

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants