Skip to content

Development server not reloading on changes to code - "[WDS] Errors while compiling. Reload prevented." #71

Closed
@ShaCP

Description

@ShaCP

Bug report

If the current behavior is a bug, please provide the steps to reproduce.

Live reloading is prevented in development server with the error:
"[WDS] Errors while compiling. Reload prevented."

I'm using this config:

module.exports = { env: { browser: true, es2021: true, node: true, }, extends: [ 'airbnb-base', ], parserOptions: { ecmaVersion: 12, sourceType: 'module', }, rules: { }, };

Then do npm start

What is the expected behavior?

Live reloading should work in web development server. When I make a change to the code, it should be reflected in the web dev server. I tried using these options:

new ESLintPlugin({ failOnError: false, failOnWarning: false })

It seems like they had no effect (according to the docs, false is the default anyway).

Other relevant information:
webpack version: 5.16.0
Node.js version: 10.16.3
Operating System: Windows 10
Additional tools:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions