Skip to content

Client reloads app even when there is an error and the screen is just shown for a very short time. #209

@jespermjonsson

Description

@jespermjonsson

When loading the application with the live client e.g. http://localhost:3000/webpack-dev-server/index.html the browser is reloaded on script/style changes. But when there is an syntax error (and using the NoErrorsPlugin) the browser is reloaded with the message: Errors while compiling. App ready. And an error screen is displayed just before the browser is reloaded. But if the browser is reloaded manually after this syntax error has occured (so it is the initial load) the error screen is displayed nicely with the title: Errors while compiling. App updated with errors. No reload!.

Is there a reason why the client reloads the browser on errors? Thinking of these lines in the client:

if(initial) return initial = false;
reloadApp();

Or are you open to change this somehow so the error message is shown until the syntax error is fixed and a new bundle is generated even when the error occurs during a regular reload (not just the initial load)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions