mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-12 05:48:58 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user