fix(client): Vite 6 statt Vite 8 wegen fehlender Rolldown-Bindings

Vite 8 benötigt native @rolldown-Bindings, die npm oft nicht installiert.
Downgrade auf Vite 6 mit plugin-react 4 behebt den Dev-Server-Absturz;
start-dev.sh prüft client/node_modules vor dem Start.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-30 13:54:30 +02:00
parent dea33e3f00
commit 0276d8445e
3 changed files with 600 additions and 675 deletions
+5
View File
@@ -185,6 +185,11 @@ if [ ! -d node_modules ]; then
kill "$BACKEND_PID" 2>/dev/null
exit 1
fi
# Vite 6+ via plugin-react 4; refresh lockfile after package.json changes
if ! node -e "require.resolve('vite/package.json')" 2>/dev/null; then
echo "Client dependencies incomplete — running npm ci..."
npm ci || exit 1
fi
npm run dev &
CLIENT_PID=$!
cd "$REPO_ROOT" || exit 1