Skip to content

Dashboard image fails to build #197

@Znuff

Description

@Znuff

Using:

docker compose --profile with-dashboard up -d

Results in the image failing to build:

 => CACHED [builder 3/6] COPY package*.json ./                                                                                                                                                                                                                                                                                                                        0.0s
 => ERROR [builder 4/6] RUN npm ci                                                                                                                                                                                                                                                                                                                                    3.4s
------
 > [builder 4/6] RUN npm ci:
3.248 npm error code ERESOLVE
3.248 npm error ERESOLVE could not resolve
3.248 npm error
3.248 npm error While resolving: @vitejs/plugin-react@5.1.4
3.248 npm error Found: vite@8.0.13
3.248 npm error node_modules/vite
3.248 npm error   dev vite@"^8.0.13" from the root project
3.248 npm error
3.248 npm error Could not resolve dependency:
3.248 npm error peer vite@"^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from @vitejs/plugin-react@5.1.4
3.248 npm error node_modules/@vitejs/plugin-react
3.248 npm error   dev @vitejs/plugin-react@"^5.1.4" from the root project
3.248 npm error
3.248 npm error Conflicting peer dependency: vite@7.3.5
3.248 npm error node_modules/vite
3.248 npm error   peer vite@"^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from @vitejs/plugin-react@5.1.4
3.248 npm error   node_modules/@vitejs/plugin-react
3.248 npm error     dev @vitejs/plugin-react@"^5.1.4" from the root project
3.248 npm error
3.248 npm error Fix the upstream dependency conflict, or retry
3.248 npm error this command with --force or --legacy-peer-deps
3.248 npm error to accept an incorrect (and potentially broken) dependency resolution.
3.248 npm error
3.248 npm error
3.248 npm error For a full report see:
3.248 npm error /root/.npm/_logs/2026-06-09T17_41_04_870Z-eresolve-report.txt
3.250 npm notice
3.250 npm notice New major version of npm available! 10.8.2 -> 11.16.0
3.250 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0
3.250 npm notice To update run: npm install -g npm@11.16.0
3.250 npm notice
3.251 npm error A complete log of this run can be found in: /root/.npm/_logs/2026-06-09T17_41_04_870Z-debug-0.log
------
[+] up 0/2
 ⠙ Image openwa-dashboard  Building                                                                                                                                                                                                                                                                                                                                    3.9s
 ⠙ Image openwa-openwa-api Building                                                                                                                                                                                                                                                                                                                                    3.9s
Dockerfile.traefik:7

--------------------

   5 |

   6 |     COPY package*.json ./

   7 | >>> RUN npm ci

   8 |

   9 |     COPY . .

--------------------

failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions