Skip to content

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

@c64emulator

Description

@c64emulator
> espwebtool@0.1.0 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions