How to enable error display on browser sreen
See original GitHub issueI’d like to show script errors like the screenshot below. Is there a way to do it with webpack devserver

Here is my webpack config
entry: './app/index.js',
output: {
filename: 'bundle.js',
path: path.join(__dirname, buildFolder),
publicPath: publicPath
},
devServer: {
contentBase: buildFolder
}
Here is I start the dev server:
webpack-dev-server --inline --hot
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
webpack - How to enable error display on browser screen?
1 Answer 1 · you use webpack.js as a bundle tool · you have configured .eslintrc.json for your project · you have installed...
Read more >Display All PHP Errors: Basic & Advanced Usage
Configure PHP.ini to Display All Errors. If adding some of the PHP code errors doesn't show in the browser during testing, then the...
Read more >How to Display and Log PHP Errors - InMotion Hosting
This article will cover how to turn display_errors On and Off, adjust error reporting settings, configure error logging, and use the ini_set() ...
Read more >How to open the browser console to view errors
Safari. keyboard shortcut: Command + Option + C menu location: The Safari developer tools must be enabled before use. 1. Safari > ...
Read more >How to Display All PHP Errors: For Basic and Advanced Use
Adding these lines to your PHP code file is the quickest way to output all PHP errors and warnings: ini_set ('display_errors', 1); ini_set...
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

Note that since v2.3.0, you can use
overlay: truein yourdevServerconfig. This is essentially the same as react-dev-utils.Ahh, it doesn’t seem to capture runtime errors…?
“Uncaught ReferenceError: x is not defined” “Uncaught TypeError: window.foo is not a function”
etc…