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

App returns blank page in the first time after upgrading react-scripts to v4.0.3 #10776

Closed
slim-hmidi opened this issue Apr 2, 2021 · 0 comments

Comments

@slim-hmidi
Copy link

Describe the bug

The app displays a blank page for the first time in localhost, only when I refresh I got the page displayed.

Did you try recovering your dependencies?

I upgraded react-scripts from v3.4.3 to v4.0.3. I deleted the node_modules and package-lock.json and run npm install but I got the same issue.
I added homepage:'.' to package.json but didn't fix the issue too.

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

current version of create-react-app: 4.0.3

  System:
    OS: Windows 10 10.0.19042
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 14.15.5 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.19041.423.0), Chromium (89.0.774.63)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    react: 17.0.2 => 17.0.2
    react-dom: 17.0.2 => 17.0.2
    react-scripts: ^4.0.3 => 4.0.3
  npmGlobalPackages:
    create-react-app: Not Found

Expected behavior

The page should be displayed automatically with reloading it at first time.

Actual behavior

The page is blank at the first launch and I only got this message in the browser console:

[HMR] Waiting for update signal from WDS...
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

1 participant