-
Notifications
You must be signed in to change notification settings - Fork 12
chore(deps): update dependency @vitejs/plugin-react to v6 #870
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,7 +75,7 @@ | |
| "@types/node": "^24.3.0", | ||
| "@types/react": "^19.2.2", | ||
| "@types/react-dom": "^19.1.7", | ||
| "@vitejs/plugin-react": "^5.0.1", | ||
| "@vitejs/plugin-react": "^6.0.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8+, but the project uses Vite 7.3.2 (line 91). Why it matters: According to the official v6.0.0 release notes, Vite 7 and below are no longer supported. The peer dependency is Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible Vite version. Why it matters: From the official release notes:
Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8+ but the project uses Vite Why it matters: According to the v6.0.0 release notes, this version dropped support for Vite 7 and below. The peerDependencies now specify Suggested fix: First upgrade Vite to v8+: "vite": "^8.0.0",Then verify the dev server and production build work correctly before merging this plugin upgrade. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible Vite version - Why it matters: According to the official changelog, version 6.0.0 explicitly dropped support for Vite 7 and below. The project currently uses Suggested fix: Upgrade Vite to v8 alongside this plugin update: "vite": "^8.0.0",Or pin the plugin to v5 if Vite upgrade needs to be deferred: "@vitejs/plugin-react": "^5.0.1",There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Major version upgrade without corresponding Vite upgrade. Why it matters: This line changes the plugin from v5 to v6, but v6 has incompatible peer dependency requirements. Per the changelog:
Since the project uses Suggested fix: Either revert to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible peer dependency - Why it matters: Per the official CHANGELOG, v6.0.0 explicitly "Drop Vite 7 and below support". The pnpm-lock.yaml confirms the peer dependency: Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This major version upgrade introduces a peer dependency conflict. Why it matters:
Attempting to build with this configuration will result in peer dependency warnings/errors and potential runtime failures. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency incompatibility with Vite version. Why it matters: According to the official CHANGELOG, Suggested fix: Upgrade Vite to v8: change line 91 from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible peer dependency — @vitejs/plugin-react v6 requires Vite 8+, but project uses Vite ^7.3.2. Why it matters: According to the official v6.0.0 release notes, this major version explicitly "Drop[s] Vite 7 and below support". The peerDependencies now specify From the changelog:
Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8+, but the project uses Vite ^7.3.2. Why it matters: According to the @vitejs/plugin-react v6.0.0 changelog, this version explicitly "Drop[s] Vite 7 and below support" and requires Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8.0.0+ as a peer dependency, but the project uses Vite 7.3.2 (line 91). Why it matters: According to the official CHANGELOG, v6.0.0 explicitly dropped support for Vite 7: "Vite 7 and below are no longer supported. If you are using Vite 7, please upgrade to Vite 8." The npm registry confirms Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency mismatch with Vite. Why it matters: According to the official Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This upgrade to Why it matters: According to the official changelog, v6.0.0 dropped support for Vite 7 and below, requiring
This version mismatch will cause the plugin to fail because v6 relies on Vite 8's native Oxc-based JSX handling, which doesn't exist in Vite 7. Suggested fix: Either:
If upgrading Vite, also check the Vite 8 migration guide for any breaking changes that might affect the build configuration. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency version mismatch. Why it matters: Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This upgrade introduces a peer dependency incompatibility. Why it matters: According to the v6.0.0 release notes, @vitejs/plugin-react v6 dropped support for Vite 7 and below, requiring Vite 8+. The current project uses Vite 7.3.2 (line 91 of this file), which is incompatible. The plugin's peerDependencies changed from Suggested fix: Upgrade Vite to v8.x first ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Version incompatibility with Vite. Why it matters:
This will cause peer dependency warnings at best, and potential runtime/build failures at worst since v6 removed Babel-based transforms that v5 used, relying instead on Vite 8's native Oxc-based handling. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8+ as a peer dependency, but the project uses Why it matters: According to the v6.0.0 release notes: "Vite 7 and below are no longer supported. If you are using Vite 7, please upgrade to Vite 8." The plugin's peerDependencies specify Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency incompatibility - Why it matters: According to the official changelog, v6.0.0 explicitly dropped support for Vite 7 and below: "Drop Vite 7 and below support (#1124)". The peerDependencies now specify Additionally, v6.0.0 removed Babel-related features and now uses Oxc for React refresh transforms. If your build relies on custom Babel plugins configured through this plugin, those configurations will stop working. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite ^8.0.0 as a peer dependency, but the project currently uses Vite ^7.3.2 (line 91). Why it matters: According to the official CHANGELOG:
Installing this version alongside Vite 7 will result in a peer dependency mismatch and potential runtime/build failures. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8+, but the project uses Vite 7.3.2. Why it matters: According to the Using an incompatible version will result in peer dependency warnings and potential runtime failures since v6 removed Babel-related features that v5 used internally for React Fast Refresh with Vite 7. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8+, but the project uses Vite 7.3.2. Why it matters: According to the @vitejs/plugin-react CHANGELOG, version 6.0.0 explicitly dropped support for Vite 7 and below: "Vite 7 and below are no longer supported. If you are using Vite 7, please upgrade to Vite 8." The peerDependencies in the lockfile confirm this requires Using an incompatible version will cause peer dependency warnings and may result in runtime errors or missing functionality. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible peer dependency - Why it matters: According to the official CHANGELOG, version 6.0.0 explicitly dropped support for Vite 7 and below: "Vite 7 and below are no longer supported. If you are using Vite 7, please upgrade to Vite 8." The peer dependencies changed from Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible Vite version. Why it matters: @vitejs/plugin-react v6.0.0 requires Vite 8+ as a peer dependency, but this project uses Vite ^7.3.2 (line 91). According to the official changelog:
Using incompatible versions will cause runtime errors or unexpected behavior. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency mismatch - Why it matters: According to the v6.0.0 release notes, this version "Drop[s] Vite 7 and below support." Installing with mismatched peer dependencies can cause:
The lockfile already shows the new peer dependency requirement: peerDependencies:
vite: ^8.0.0Suggested fix: Choose one of these paths:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency mismatch - Why it matters: According to the official CHANGELOG, v6.0.0 dropped support for Vite 7 and below. The peerDependencies now specify Suggested fix: Update Vite to v8: "vite": "^8.0.0"Then run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-blocking: This upgrade to v6.0.0 introduces a peer dependency mismatch. According to the @vitejs/plugin-react CHANGELOG:
This project uses Why it matters: While pnpm allows installing with peer dependency mismatches, running on unsupported versions means:
Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This upgrade introduces an incompatible peer dependency. Why it matters:
The pnpm-lock.yaml confirms this: While pnpm allows installing despite peer mismatches (with warnings), this can lead to runtime issues since v6 assumes Vite 8's Oxc-based JSX transform infrastructure. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible peer dependency - Why it matters: According to the official changelog, v6.0.0 explicitly "Drop Vite 7 and below support" (#1124). Using v6 with Vite 7 will likely cause:
Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible Vite version. Why it matters: According to the official
This project currently uses Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8+, but the project currently uses Vite ^7.3.2 (see line 91). Why it matters: According to the official changelog, Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Version incompatibility - @vitejs/plugin-react v6 requires Vite 8+, but this project uses Vite 7.3.2. Why it matters: According to the official CHANGELOG, v6.0.0 explicitly "Drop[s] Vite 7 and below support." The release notes state: "Vite 7 and below are no longer supported. If you are using Vite 7, please upgrade to Vite 8." The current Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version of Why it matters: According to the official CHANGELOG, v6.0.0 explicitly "Drop Vite 7 and below support (#1124). Vite 7 and below are no longer supported." Using v6 with Vite 7 will cause peer dependency warnings at best, and runtime/build failures at worst. The plugin relies on Vite 8's native Oxc-based React Refresh handling, which isn't available in Vite 7. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency mismatch - Why it matters: According to the v6.0.0 release notes, Vite 7 and below are no longer supported. The peer dependencies confirm this: "peerDependencies": {
"vite": "^8.0.0"
}Running Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Incompatible peer dependency with current Vite version. Why it matters: @vitejs/plugin-react v6.0.0 dropped support for Vite 7 and below (see release notes). The changelog states:
This project currently uses Vite Suggested fix: Either:
Note: The simple There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Why it matters: According to the v6.0.0 release notes, Vite 7 and below are no longer supported. The peer dependency changed to Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency incompatibility. Why it matters: @vitejs/plugin-react v6.0.0 requires Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8+, but the project uses Vite 7.3.2. Why it matters: According to the plugin-react 6.0.0 release notes, this version explicitly dropped support for Vite 7 and below. The peerDependencies specify Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Version mismatch - Why it matters: According to the plugin-react v6.0.0 release notes, this version explicitly "Drop[s] Vite 7 and below support". The peer dependencies changed from supporting Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This upgrade introduces a peer dependency mismatch. Why it matters: According to the @vitejs/plugin-react CHANGELOG, v6.0.0 dropped support for Vite 7 and below. The peer dependency is now The changelog states:
This will cause npm/pnpm peer dependency warnings and may result in runtime errors or missing functionality. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Version incompatibility - Why it matters: Per the official release notes, plugin-react v6 "Drop Vite 7 and below support". The peerDependencies also confirm this requires Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version upgrade introduces a critical peer dependency incompatibility. Why it matters: Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Why it matters: According to the v6.0.0 release notes, Vite 7 and below are no longer supported. The plugin will fail to load or produce undefined behavior when used with an incompatible Vite version. Suggested fix: Choose one of these options:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Vite 8.0.0+ but the project uses Vite 7.3.2. Why it matters: According to the Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Version incompatibility - Why it matters: According to the official release notes, v6.0.0 explicitly "Drop Vite 7 and below support" and changed the peer dependency to
Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency version mismatch. Why it matters: According to the @vitejs/plugin-react v6.0.0 release notes, this version drops support for Vite 7 and below, requiring Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This major version upgrade introduces a critical peer dependency incompatibility. Why it matters: According to the official @vitejs/plugin-react CHANGELOG, version 6.0.0 dropped support for Vite 7 and below: "Vite 7 and below are no longer supported. If you are using Vite 7, please upgrade to Vite 8." The current project uses Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version of Why it matters: According to the official CHANGELOG, v6.0.0 explicitly dropped support for Vite 7 and below. The peer dependency is now
Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version of Why it matters: According to the official CHANGELOG, v6.0.0 explicitly dropped support for Vite 7 and below:
The peer dependency in the published package is Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Version incompatibility with Vite. Why it matters: This will cause peer dependency warnings at minimum, and potentially runtime issues since the plugin expects Vite 8 APIs. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency incompatibility - @vitejs/plugin-react v6 requires Vite 8+, but this project uses Vite ^7.3.5. Why it matters: According to the official changelog, v6.0.0 explicitly "Drop Vite 7 and below support". The release notes state:
The current
Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Why it matters: The peer dependency requirement changed from supporting Vite 4.2+ / 5.x / 6.x / 7.x to requiring Vite 8+. Using an unsupported Vite version may cause build failures, runtime errors, or subtle HMR issues. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version of Why it matters: According to the official CHANGELOG, v6.0.0 dropped support for Vite 7 and below. The peer dependencies in the lockfile confirm this: Using incompatible versions will cause runtime errors or build failures because v6 removed Babel dependencies and relies on Vite 8's Oxc-based transformation pipeline. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version is incompatible with the current Vite version. Why it matters: Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Why it matters: The v6.0.0 release notes explicitly state: "Drop Vite 7 and below support - Vite 7 and below are no longer supported." This peer dependency mismatch will cause build failures or undefined runtime behavior because the plugin expects Vite 8 APIs that don't exist in Vite 7. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency mismatch with Vite version. Why it matters: Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency incompatibility. Why it matters: While pnpm may install this without error, the plugin's internal behavior relies on Vite 8 APIs (Oxc-based JSX transform) that may not exist in Vite 7, leading to runtime failures or broken HMR. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version requires Why it matters: According to the @vitejs/plugin-react v6.0.0 changelog, this major version explicitly "Drop[s] Vite 7 and below support." The npm registry confirms Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency incompatibility with Vite version. Why it matters: @vitejs/plugin-react v6.0.0+ requires Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: This version of Why it matters: According to the v6.0.0 changelog, Vite 7 and below are no longer supported. The npm registry confirms the peer dependency is Suggested fix: Update Vite to v8.x in the same PR: "vite": "^8.0.0"Then regenerate the lockfile with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency incompatibility. Why it matters:
This will cause npm/pnpm peer dependency warnings and may result in runtime or build failures. Suggested fix: Either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Peer dependency incompatibility. Why it matters: Suggested fix: Either:
|
||
| "@vitest/coverage-v8": "^4.1.0", | ||
| "eslint": "^9.38.0", | ||
| "eslint-plugin-react": "^7.37.5", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking: This version of
@vitejs/plugin-react(v6.0.0) is incompatible with the current Vite version (v7.3.2).Why it matters: According to the official v6.0.0 release notes:
The peer dependency was changed to require
vite: ^8.0.0. Using this with Vite 7.3.2 will cause peer dependency resolution failures or runtime issues.Suggested fix: Either:
"@vitejs/plugin-react": "^5.0.1"(supports Vite 7), OR"^8.0.0"and test thoroughly for breaking changes