Skip to content

setting WDS_SOCKET_PATH does not fix what path the dev server responds on #12092

@iamfrisbee

Description

@iamfrisbee

If you run a simple npx create-react-app my-app and then try to start it with WDS_SOCKET_PATH=/somethingelse npm start the fast refresh won't actually work. In fact, the WS never responds. The solution that worked to fix this was:

  1. First eject the app: npm run eject
  2. Then edit the file /config/webpackDevServer.config.js and add webSocketServer: { options: { path: sockPath } }, to the configuration.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions