Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"laravel-vite-plugin": "^2.1.0",
"postcss": "^8.4.47",
"tailwindcss": "^4.1.18",
"vite": "^7.3.1"
"vite": "^8.0.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "1) Confirm declared versions"
jq -r '.devDependencies | {vite, "laravel-vite-plugin": ."laravel-vite-plugin"}' package.json

echo
echo "2) Locate HMR accept usages that may need manual review under Vite 8"
rg -nP -C2 'import\.meta\.hot\.accept\s*\('

echo
echo "3) Locate explicit build target settings that may rely on old defaults"
rg -nP -C2 '\btarget\b'

Repository: dAppCore/php-admin

Length of output: 218


🌐 Web query:

laravel-vite-plugin 2.1.0 Vite 8.0.0 compatibility

💡 Result:

[email protected] is not officially compatible with Vite 8.0.0.

  • Its peerDependencies require vite: ^7.0.0 (so [email protected] is outside the supported range and will trigger a peer-dependency conflict in npm/pnpm). [1]
  • If you want Vite 8, you’ll need to wait for a laravel-vite-plugin release that widens the peer dependency to include Vite 8, or stay on Vite 7 for a supported setup. (You can force-install despite peer deps, but it’s unsupported and may break.) [1][2]

Sources:
[1] laravel/vite-plugin v2.1.0 package.json (peerDependencies) (raw.githubusercontent.com)
[2] Vite 8 beta announcement / migration guidance (vite.dev)

Citations:


Update laravel-vite-plugin or downgrade Vite before merging.

The declared laravel-vite-plugin@^2.1.0 has a peer dependency requirement of vite: ^7.0.0. Upgrading Vite to 8.0.0 creates a peer-dependency conflict and an unsupported configuration that may cause build or runtime failures. Either upgrade laravel-vite-plugin to a version that supports Vite 8, or revert Vite to version 7.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` at line 14, The package.json currently declares "vite":
"^8.0.0" while "laravel-vite-plugin@^2.1.0" requires a peer of "vite: ^7.0.0";
resolve the peer-dependency mismatch by either upgrading the laravel-vite-plugin
to a version that supports Vite 8 (find and bump "laravel-vite-plugin" to the
compatible release) or by downgrading "vite" back to a 7.x range (change the
"vite" entry to a 7.x semver); after making the change, run npm/yarn install and
verify the lockfile updates and a successful local build to confirm the conflict
is resolved.

}
}
Loading