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

Root worksapce package not generated correctly for Yarn v4 #29451

Open
2 of 4 tasks
a88zach opened this issue Dec 20, 2024 · 0 comments · May be fixed by #29452
Open
2 of 4 tasks

Root worksapce package not generated correctly for Yarn v4 #29451

a88zach opened this issue Dec 20, 2024 · 0 comments · May be fixed by #29452

Comments

@a88zach
Copy link
Contributor

a88zach commented Dec 20, 2024

Current Behavior

The root package workspace is generated as

"@scope/project@workspace:.":
  version: 0.0.0-use.local
  resolution: "@scope/project@workspace:."
  dependencies:
    "@apollo/server": 4.11.2
    ...

Expected Behavior

For Yarn v4 it should be generated with the npm: prefix on dependency versions

"@scope/project@workspace:.":
  version: 0.0.0-use.local
  resolution: "@scope/project@workspace:."
  dependencies:
    "@apollo/server": "npm:4.11.2"
    ...

GitHub Repo

No response

Steps to Reproduce

  1. Set up a new nx repo with Yarn v4
  2. Create a new node application that uses webpack and set "generateLockfile": true
  3. Build the app
  4. Try to install the app dependencies with yarn install

Nx Report

Node           : 22.12.0
OS             : darwin-arm64
Native Target  : aarch64-macos
yarn           : 3.8.7

nx                     : 20.3.0
@nx/js                 : 20.3.0
@nx/jest               : 20.3.0
@nx/eslint             : 20.3.0
@nx/workspace          : 20.3.0
@nx/cypress            : 20.3.0
@nx/devkit             : 20.3.0
@nx/esbuild            : 20.3.0
@nx/eslint-plugin      : 20.3.0
@nx/module-federation  : 20.3.0
@nx/next               : 20.3.0
@nx/node               : 20.3.0
@nx/plugin             : 20.3.0
@nx/react              : 20.3.0
@nx/storybook          : 20.3.0
@nx/vite               : 20.3.0
@nx/web                : 20.3.0
@nx/webpack            : 20.3.0
typescript             : 5.7.2
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
./tools/typescheck.plugin.ts
@nx/jest/plugin
@nx/webpack/plugin
@nx/storybook/plugin
@nx/next/plugin
---------------------------------------
Local workspace plugins:
         @wastewizer/typescheck

Failure Logs

Package Manager Version

No response

Operating System

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

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant