question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings not always shown

See original GitHub issue

Describe the bug

When running npm start, the output won’t show all of the warnings in the project. After editing the files, the warnings start appearing.

(Write your answer here.)

Did you try recovering your dependencies?

NPM Version 6.14.11

Environment

Environment Info:

current version of create-react-app: 5.0.0 running from C:\Users\eluch\AppData\Roaming\npm-cache_npx\3452\node_modules\create-react-app

System: OS: Windows 10 10.0.19043 CPU: (6) x64 Intel® Core™ i5-9600K CPU @ 3.70GHz
Binaries: Node: 14.16.0 - D:\Program Files\nodejs\node.EXE
Yarn: Not Found npm: 6.14.11 - D:\Program Files\nodejs\npm.CMD Browsers: Chrome: Not Found Edge: Spartan (44.19041.1266.0), Chromium (96.0.1054.62) Internet Explorer: 11.0.19041.1202 npmPackages: react: ^17.0.2 => 17.0.2 react-dom: ^17.0.2 => 17.0.2 react-scripts: 5.0.0 => 5.0.0 npmGlobalPackages: create-react-app: Not Found

Steps to reproduce

(Write your steps here:)

  1. Run npm start
  2. See the console output, doesn’t show all of the warnings.
  3. Edit and save a file where you know there should be a warning (e.g. React Hook useEffect has missing dependencies)

Expected behavior

I would expect the warnings (and errors) of the project to be shown.

Actual behavior

Not all of the warnings are shown in the console output.

Reproducible demo

I will try to add a reproducible demo if this is really not a known bug that everyone can reproduce.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:17

github_iconTop GitHub Comments

6reactions
cristianlivellacommented, Mar 23, 2022

Is there any update here?

It’s getting very annoying because I’m often convinced everything is okay, I submit my work to my repository, and I get warnings when I see the continuous deployment build fail.

6reactions
kitsunekyocommented, Jan 18, 2022

here’s a reproduction repo: https://github.com/kitsunekyo/cra5-eslint-not-emitting

when i run yarn start i sometimes get correct eslint emits, and sometimes absolutely no eslint output. it appears to be completely random.

if its already running, and i hit save on App.tsx once, the eslint error will correctly show up again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warnings are not displayed in the error list
From your video I see we you select "Current Document", warning text shows "0 of x warnings", it means current document have 0...
Read more >
c# - "#warning" not always being shown in the Error List
I can see the warnings in the compiler output window, but only some of them make it into the Error List. If I...
Read more >
warnings — Warning control — Python 3.11.1 documentation
If a warning is reported and doesn't match any registered filter then the “default” ... default # Show all warnings (even those ignored...
Read more >
Display warning message - MATLAB warning - MathWorks
warning. Display warning message. collapse all in page ... If msg is empty, warning resets the warning state for lastwarn , but does...
Read more >
Manage warnings about unsafe sites - Google Chrome Help
You can visit a page or access a downloaded file that shows a warning. This isn't recommended. Visit an unsafe page. On your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found