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!
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:
embedded-host-node/lib/src/compiler/async.ts
Line 134 in 4bcd8d5
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.
embedded-host-node/lib/src/dispatcher.ts
Line 117 in 4bcd8d5
Happy to provide additional details or raise a PR. Thanks for maintaining this project!