create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

React script version 4.0.0 does not reloads the browser when new changes are made

Open mwibutsa opened this issue 4 years ago • 7 comments

Describe the bug

I have been trying to create a new react app using npx and when I make changes to that new react app, the changes do not automatically get reflected in the browser. As far as I have seen, it works when use another version of react script like 3.4.4 but when I use the latest 4.0.0 it does not work. I have tried with both npm and yarn.

Did you try recovering your dependencies?

Yes, I did but the issue did not get resolved.

Which terms did you search for in the User Guide?

I made a search for react app did not reload after making changes in the codes.

Environment

Environment Info:

  current version of create-react-app: 4.0.0
  running from /home/mwibutsa/.npm/_npx/252967/lib/node_modules/create-react-app

  System:
    OS: Linux 5.8 Pop!_OS 20.04 LTS
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  Binaries:
    Node: 14.15.1 - /usr/local/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 6.14.9 - /usr/local/bin/npm
  Browsers:
    Chrome: 86.0.4240.111
    Firefox: 82.0
  npmPackages:
    react: ^17.0.1 => 17.0.1 
    react-dom: ^17.0.1 => 17.0.1 
    react-scripts: 4.0.0 => 4.0.0 
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

(Write your steps here:)

1.npx create-react-app jsx 2. delete all the files in src/ directory and recreate a new index.js file in the same directory 3. write these codes and start the app.

  1. make any new changes to the codes like changing the text

Expected behavior

  • The browser tab containing the app should reload to reflect new changes

Actual behavior

  • The browser did not reload

mwibutsa avatar Nov 20 '20 21:11 mwibutsa

Related https://github.com/facebook/create-react-app/issues/9984

Earle-Poole avatar Nov 20 '20 23:11 Earle-Poole

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

stale[bot] avatar Dec 25 '20 13:12 stale[bot]

hey guys, any news for this? thanks!

nsogliano avatar Feb 24 '21 08:02 nsogliano

Also still not working

Jarrodsz avatar Sep 21 '21 16:09 Jarrodsz

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

stale[bot] avatar Jan 09 '22 13:01 stale[bot]

Any update on this?

nickcorbett15 avatar Mar 27 '23 13:03 nickcorbett15

Good morning, any update on this issue? If it is fixed, it should be closed. Thanks.

BraianS avatar Mar 23 '24 15:03 BraianS