skip to Main Content

When I create a new react project like this:

npx create-react-app my-app
cd ./my-app
npm uninstall react react-dom
npm install react@18 react-dom@18
npm install web-vitals
npm start

The loading is really slow.

also when i edit /src/app.js and changed the text there(for example, added <p>hey</p> to the default project) I don’t see the changes when I refresh the browser(tried to change browsers and be in incognito).

I work on WSL but the project is in C drive.

For example:
I run without lines 7,13.
The added them and made refresh and don’t see the changes in the tab.
enter image description here

2

Answers


  1. Seems an issue with hot reload, Did you tried CHOKIDAR_USEPOLLING=true npm start ?

    https://github.com/facebook/create-react-app/issues/10253#issuecomment-747970009

    Login or Signup to reply.
  2. @liel7200

    Can you answer few questions so that I can trace your issue:

    1- Are you using Docker? If yes, then share your Dockerfile & docker-compose.yml.

    2- Are you using nodemon? If yes, Kindly share your package.json [scripts].

    3- What is your machine resource configuration?

    Thanks.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search