Skip to content

If file is missing, Webpack stays in error state even after it is created #668

@gaearon

Description

@gaearon

This has bugged me for months because it requires restarting dev server which is taking a loong time.

If I accidentally mistype a require, Webpack will enter an invalid state:

ERROR in ./src/scripts/atoms/CheckLink.jsx
Module not found: Error: Cannot resolve 'file' or 'directory' ./CheckLink.less in /Users/dan/Documents/Projects/whatever/src/scripts/atoms
 @ ./src/scripts/atoms/CheckLink.jsx 11:0-27
webpack: bundle is now VALID.

Now even if I add this file, Webpack won't ever see it, even though it will trigger recompilation.
I have to restart dev server for changes to take effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions