Skip to content

webpack doesn't always report compilation errors with --watch #66

Closed
@pbrant

Description

@pbrant

Steps to reproduce:

  1. Run webpack with --watch
  2. Break a file in two places (error is reported)
  3. Fix one of the problems (error isn't reported, only clue is that webpack didn't create the final bundle)
  4. Fix the other error (bundle is created)

At this point, a new error will be reported (i.e. steps 2 through 4 can be repeated indefinitely).

I've done a bit of snooping around, but I'm not sure what the appropriate fix is. The after-compile plugin callback is called and cache.errors is populated, but just adding it to compilation.errors apparently isn't enough to tell webpack to display it.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions