OpenWA icon indicating copy to clipboard operation
OpenWA copied to clipboard

fix(dashboard): downgrade Vite to v6.2.6 to resolve peer dependency conflict

Open NamTheGreat opened this issue 6 months ago • 0 comments

Problem

docker compose -f docker-compose.dev.yml up -d fails during the dashboard service build with an ERESOLVE peer dependency conflict.

Error: npm error While resolving: @vitejs/[email protected] npm error Found: [email protected] npm error Could not resolve dependency: npm error peer vite@"^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from @vitejs/[email protected]

@vitejs/[email protected] does not support Vite 8, causing npm ci to abort.

Solution

  • Downgrade vite from ^8.0.13 to ^6.2.6 (compatible with @vitejs/[email protected])
  • Switch dashboard/Dockerfile from RUN npm ci to RUN npm install to regenerate the lock file cleanly after deleting the stale package-lock.json

Changes

  • dashboard/package.json: "vite": "^8.0.13" -> "vite": "^6.2.6"
  • dashboard/Dockerfile: RUN npm ci -> RUN npm install

Verification

  • docker compose -f docker-compose.dev.yml up -d --build now completes successfully
  • Dashboard loads correctly at http://localhost:2886

Related

Fixes #123

NamTheGreat avatar May 21 '26 21:05 NamTheGreat