facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.71k stars 26.85k forks source link

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

Open BrianHHough opened 2 years ago

BrianHHough commented 2 years ago

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 commented 2 years ago

Duplicate of #11871