Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mwibutsa opened this issue Nov 20, 2020 · 7 comments

Comments

@mwibutsa
Copy link

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
@Earle-Poole
Copy link

Related #9984

@stale
Copy link

stale bot commented Dec 25, 2020

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 stale bot added the stale label Dec 25, 2020
@nsogliano
Copy link

hey guys, any news for this? thanks!

@stale stale bot removed the stale label Feb 24, 2021
@Jarrodsz
Copy link

Also still not working

@stale
Copy link

stale bot commented Jan 9, 2022

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 stale bot added the stale label Jan 9, 2022
@nickcorbett15
Copy link

Any update on this?

@stale stale bot removed the stale label Mar 27, 2023
@BraianS
Copy link

BraianS commented Mar 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants