Fix npm ci failure for react-scripts 5 + React 19 peer deps
Docker Build and Push / build (push) Failing after 3m3s
Docker Build and Push / build (push) Failing after 3m3s
react-scripts@5.0.1 declares peer deps against React 17/18; adding --legacy-peer-deps lets npm ci succeed without changing the lockfile. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
a0af4e7435
commit
e7efe3c80d
1 file changed
+2
-2
+2
-2
@@ -6,8 +6,8 @@ WORKDIR /app/client
|
|||||||
# Copy client package files
|
# Copy client package files
|
||||||
COPY client/package*.json ./
|
COPY client/package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies (--legacy-peer-deps needed for react-scripts 5 + React 19)
|
||||||
RUN npm ci
|
RUN npm ci --legacy-peer-deps
|
||||||
|
|
||||||
# Copy client source
|
# Copy client source
|
||||||
COPY client/src ./src
|
COPY client/src ./src
|
||||||
|
|||||||
Reference in new issue
Block a user