Skip to content

Cannot access 'compilation' before initialization" error #398

@prndP

Description

@prndP

Hi there. I'm getting a "Cannot access 'compilation' before initialization" error during builds in my CI environment. After investigation, I believe I traced this to this line:

this.compilations.delete(compilation);
.

The dispatcher comment here seems to hint that under some conditions we will call the callback synchronously so I suspect it's hitting that condition in the CI and immediately running callback which then reliably throws the error.

* events synchronously, `callback` will be called synchronously.

Happy to provide additional details or raise a PR. Thanks for maintaining this project!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions