Skip to content

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

Open
NamTheGreat wants to merge 1 commit into
rmyndharis:mainfrom
NamTheGreat:fix/vite-peer-dependency
Open

fix(dashboard): downgrade Vite to v6.2.6 to resolve peer dependency conflict#126
NamTheGreat wants to merge 1 commit into
rmyndharis:mainfrom
NamTheGreat:fix/vite-peer-dependency

Conversation

@NamTheGreat
Copy link
Copy Markdown

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/plugin-react@5.1.4
npm error Found: vite@8.0.13
npm error Could not resolve dependency:
npm error peer vite@"^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from @vitejs/plugin-react@5.1.4

@vitejs/plugin-react@5.1.4 does not support Vite 8, causing npm ci to abort.

Solution

  • Downgrade vite from ^8.0.13 to ^6.2.6 (compatible with @vitejs/plugin-react@5.1.4)
  • 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

…bility

Fixes peer dependency conflict where @vitejs/plugin-react@5.1.4
does not support vite@8.x. Upgrading to v6 resolves the ERESOLVE
error during docker build.

Closes rmyndharis#123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Dashboard] Docker build fails: @vitejs/plugin-react@5.1.4 incompatible with vite@8.x (peer dependency conflict)

1 participant