fix: upgrade react-scripts to 5.0.1 for frontend Docker build compatibility

- react-scripts 4.0.3 -> 5.0.1 (Webpack 5, supports modern JS in node_modules)
- @monaco-editor/react 3.7.5 -> ^4.6.0 (resolves peer dep conflict with monaco-editor)
- Removed --legacy-peer-deps from Dockerfile (no longer needed, was causing ajv resolution issues)
- Added @babel/plugin-proposal-private-property-in-object as explicit devDependency
- Removed overrides section (not needed with react-scripts 5)

Made-with: Cursor
This commit is contained in:
taylanbakircioglu
2026-03-16 13:25:03 +03:00
parent 68a4d1ac23
commit d4b58d62c7
2 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ RUN npm cache clean --force \
&& npm config set fetch-retry-maxtimeout 300000 \
&& npm config set fetch-timeout 600000 \
&& npm config set registry https://registry.npmjs.org/ \
&& npm install --no-audit --no-fund --progress=false --legacy-peer-deps --timeout=600000 \
&& npm install --no-audit --no-fund --progress=false --timeout=600000 \
&& npm cache clean --force
# Copy source code
+5 -8
View File
@@ -13,7 +13,7 @@
"moment": "^2.29.0",
"react18-json-view": "^0.2.9",
"monaco-editor": "^0.36.0",
"@monaco-editor/react": "3.7.5",
"@monaco-editor/react": "^4.6.0",
"react-ace": "^10.1.0",
"ace-builds": "^1.23.4",
"react-window": "^1.8.10"
@@ -21,11 +21,12 @@
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react-scripts": "4.0.3",
"react-scripts": "5.0.1",
"typescript": "^4.9.0",
"@testing-library/react": "^13.4.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/user-event": "^14.4.3"
"@testing-library/user-event": "^14.4.3",
"@babel/plugin-proposal-private-property-in-object": "^7.21.0"
},
"scripts": {
"start": "react-scripts start",
@@ -52,9 +53,5 @@
"last 1 safari version"
]
},
"proxy": "http://backend:8000",
"overrides": {
"@babel/core": "^7.24.0",
"@babel/plugin-proposal-private-property-in-object": "^7.21.0"
}
"proxy": "http://backend:8000"
}