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.

How to enable error display on browser sreen

See original GitHub issue

I’d like to show script errors like the screenshot below. Is there a way to do it with webpack devserver

screen shot 2016-07-07 at 2 14 25 pm

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:closed
  • Created 7 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

79reactions
SpaceK33zcommented, Mar 6, 2017

Note that since v2.3.0, you can use overlay: true in your devServer config. This is essentially the same as react-dev-utils.

7reactions
mikeaustincommented, Feb 2, 2018

Ahh, it doesn’t seem to capture runtime errors…?

“Uncaught ReferenceError: x is not defined” “Uncaught TypeError: window.foo is not a function”

etc…

Read more comments on GitHub >

github_iconTop 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 >

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