Option to silence/disable warnings [Feature request]
See original GitHub issueHi, would you consider adding an option to run in silent
mode, meaning that warnings are not shown? I’m getting a lot of warnings about not finding proptypes from react-router-dom
, but those are all flow types being used as flow types and not proptypes, so I don’t really care about the warnings. Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to disable Python warnings? - Stack Overflow
Look at the Temporarily Suppressing Warnings section of the Python docs: If you are using code that you know will raise a warning,...
Read more >Using the GNU Compiler Collection (GCC): Warning Options
3.8 Options to Request or Suppress Warnings. Warnings are diagnostic messages that report constructions that are not inherently erroneous but that are risky...
Read more >Options to Request or Suppress Warnings — gcc 6 ... - Fedora
You can request many specific warnings with options beginning with -W, for example -Wimplicit to request warnings on implicit declarations.
Read more >Warning Options - Using and Porting GNU Fortran
5.5 Options to Request or Suppress Warnings. Warnings are diagnostic messages that report constructions which are not inherently erroneous but which are ...
Read more >Perl pragma to control optional warnings - Perldoc Browser
It's a more flexible alternative for both the command line flag -w and the equivalent ... For a start, say you want to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@IanVS the issue is that we’re not giving the warning. For your code sample, we generate this code:
Since the file
react-router-dom
resolves to is an ES6 module, and doesn’t have an export with that name, webpack issues a warning.The obvious solution is to check the specified import like,
/^\w/.test('react-router-dom')
, however that breaks code adding a ‘module directory’ or alias, e.g.import X from 'src/foo/bar'
, so it’s not a perfect solution. I think this is good enough though.Yeah, should be fixed. Please open another issue if there are further issues.