fix: Add --legacy-peer-deps to npm install in docker-compose for React 18/19 peer dependency conflict
This fixes the dashboard container failing to install dependencies due to react-leaflet v5 requiring React 19 while the project uses React 18.3.1. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -44,7 +44,7 @@ services:
|
||||
volumes:
|
||||
- ./dashboard:/app
|
||||
- /app/node_modules
|
||||
command: ["sh", "-c", "npm install && npm run dev -- --host 0.0.0.0 --port 8090"]
|
||||
command: ["sh", "-c", "npm install --legacy-peer-deps && npm run dev -- --host 0.0.0.0 --port 8090"]
|
||||
ports:
|
||||
- "8090:8090"
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user