serialterminal icon indicating copy to clipboard operation
serialterminal copied to clipboard

Cant load a react app after starting server: migrate to Vite from CRA

Open c64emulator opened this issue 1 year ago • 0 comments

> [email protected] start
> react-scripts start
(node:27) [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:27) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...

It seems like Create React App is dead and this issue will never be fixed. The best solution is to use Vite instead. Vite is most similar to CRA and almost a drop-in replacement. You can follow this guide on how to migrate to Vite from CRA.

c64emulator avatar Feb 11 '24 22:02 c64emulator