Skip to content

create-react-app start script logs a ton of info in the terminal after Local/On Your Network output #11923

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

Open
BrianHHough opened this issue Jan 13, 2022 · 1 comment

Comments

@BrianHHough
Copy link

Describe the bug

Upon using npx create-react-app and running yarn start, there are many lines of outputted code about static/js/bundle.js and index.html and asset-manifest.json (items in the public folder) and cached modules. I have a print out of the logs below.

Did you try recovering your dependencies?

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

  System:
    OS: macOS 11.5.2
    CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
  Binaries:
    Node: 17.0.1 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.1.4 - ~/.npm-packages/bin/npm
  Browsers:
    Chrome: 97.0.4692.71
    Edge: Not Found
    Firefox: Not Found
    Safari: 14.1.2
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: 5.0.0

Steps to reproduce

(Write your steps here:)

  1. Run npx create-react-app
  2. Delete node_modules folder and re-install it with yarn install
  3. Start app with yarn start
  4. Once the app is running, there is a ton of outputted info about what is in the /public folder and is filling up the terminal, almost like a log

Expected behavior

The terminal would just stop with the line after To create a production build, use yarn build like the below:

Compiled successfully!

You can now view election in the browser.

  Local:            http://localhost:XXXXX
  On Your Network:  http://XXXXX

Note that the development build is not optimized.
To create a production build, use yarn build.

Actual behavior

There is this output logged here:

Compiled successfully!

You can now view election in the browser.

  Local:            http://localhost:XXXXX
  On Your Network:  http://XXXXX

Note that the development build is not optimized.
To create a production build, use yarn build.

asset static/js/bundle.js 1.46 MiB [emitted] (name: main) 1 related asset
asset index.html 1.67 KiB [emitted]
asset asset-manifest.json 190 bytes [emitted]
cached modules 1.35 MiB [cached] 101 modules
runtime modules 28.1 KiB 13 modules
javascript modules 3.42 KiB
  ./src/index.js 1.83 KiB [built] [code generated]
  ./src/App.js 1.59 KiB [built] [code generated]
webpack 5.66.0 compiled successfully in 5304 ms

Reproducible demo

I am using the create-react-app template here: https://github.com/facebook/create-react-app

@joshlongerbeam
Copy link

Duplicate of #11871

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

2 participants