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

support of vite@6 & vitest@3 #29695

Open
1 of 4 tasks
welcomemax opened this issue Jan 21, 2025 · 1 comment
Open
1 of 4 tasks

support of vite@6 & vitest@3 #29695

welcomemax opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
scope: bundlers Issues related to webpack, rollup type: bug

Comments

@welcomemax
Copy link

Current Behavior

vite@6 and vitest@3 is conflicting as peer dependency with nx/vite

Expected Behavior

support of vite@6 and vitest@3 by nx/vite

GitHub Repo

No response

Steps to Reproduce

  1. force update vite to 6 ver or vitest to 3 ver
  2. npm i without --force or --legacy-peer-deps flags

Nx Report

Node           : 22.12.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.0

nx                     : 20.3.1
@nx/js                 : 20.3.1
@nx/jest               : 20.3.1
@nx/eslint             : 20.3.1
@nx/workspace          : 20.3.1
@nx/cypress            : 20.3.1
@nx/devkit             : 20.3.1
@nx/eslint-plugin      : 20.3.1
@nx/module-federation  : 20.3.1
@nx/plugin             : 20.3.1
@nx/react              : 20.3.1
@nx/storybook          : 20.3.1
@nx/vite               : 20.3.1
@nx/web                : 20.3.1
typescript             : 5.6.2
---------------------------------------
Registered Plugins:
@nx/vite/plugin
---------------------------------------
Local workspace plugins:
         cli

Failure Logs

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nx/[email protected]
npm error Found: [email protected]
npm error node_modules/vite
npm error   dev vite@"6.0.9" from the root project
npm error   peer vite@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" from @joshwooding/[email protected]
npm error   node_modules/@joshwooding/vite-plugin-react-docgen-typescript
npm error     @joshwooding/vite-plugin-react-docgen-typescript@"0.4.2" from @storybook/[email protected]
npm error     node_modules/@storybook/react-vite
npm error       dev @storybook/react-vite@"8.4.7" from the root project
npm error   12 more (@storybook/builder-vite, @storybook/react-vite, ...)
npm error
npm error Could not resolve dependency:
npm error peer vite@"^5.0.0" from @nx/[email protected]
npm error node_modules/@nx/vite
npm error   dev @nx/vite@"20.3.1" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/vite
npm error   peer vite@"^5.0.0" from @nx/[email protected]
npm error   node_modules/@nx/vite
npm error     dev @nx/vite@"20.3.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Package Manager Version

No response

Operating System

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

Additional Information

migration guides:
https://vitest.dev/guide/migration.html
https://vite.dev/guide/migration

@Lonli-Lokli
Copy link

#29364

@AgentEnder AgentEnder added the scope: bundlers Issues related to webpack, rollup label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: bundlers Issues related to webpack, rollup type: bug
Projects
None yet
Development

No branches or pull requests

4 participants