Replies: 3 comments 7 replies
-
Unfortunately |
Beta Was this translation helpful? Give feedback.
-
@alexander-akait can you provide the any alternative to resolve this issue we need to fix it for our client by the end of the next Monday. |
Beta Was this translation helpful? Give feedback.
-
@alexander-akait I simply override "webpack-dev-server" to version "^5.2.2", and it fixed my issue. Since webpack-dev-server is only used for local development, and production environments serve only static files, this override does not affect the app’s behavior in production — at least as far as I understand it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using react-scripts@5.0.1, which is locked to webpack-dev-server@4.x.
A vulnerability was found: CVE-2025-30360
While webpack5.2.1 fixes the CVE (using override), the upgrade doesn't let me run the app. I get this error on npm start:
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
options has an unknown property 'onAfterSetupMiddleware'. These properties are valid:
object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, ipc?, liveReload?, onListening?, open?, port?, proxy?, server?, app?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }
any solutions?
Beta Was this translation helpful? Give feedback.
All reactions