VRMS icon indicating copy to clipboard operation
VRMS copied to clipboard

Resolve warnings, errors that come from reacts-scripts upgrade

Open trillium opened this issue 1 year ago • 0 comments

Overview

The upgrade of react-scripts in #1324 introduced a warning from webpack:

[HPM] Proxy created: /  -> http://localhost:4000
(node:78376) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:78376) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.

Action Items

The application is stable under its current configuration (as stable as it was pre react-scripts bump), however as best practice we should move away from depricated items within our dependencies.

  • [ ] Update client/src/setupProxy.js to use setupMiddlewares

Resources/Instructions

trillium avatar Mar 12 '23 19:03 trillium