Open stephencookdev opened 6 years ago
@guptakvgaurav - this is a bit of an odd error to me. Basically it means that you've hit the "compile/end" flow without ever hitting the "compile/start" flow :thinking:
Would you mind sharing how you're running webpack? I.e. what command are you calling, are you in run-mode or watch-mode, etc. etc.?
I've got the same issue with Wepack 3.10. I'm running the generated setup created by Jhipster. Any idea?
Solved it. It appeared I've had an older version of the merge-jsons-webpack-plugin. I was using 1.0.11. Updating to 1.0.15 solved the issue.
I am getting this error with webpack 4 Could not find a matching event to end plugins Object/Compiler/afterEmit Is this related to this issue?
webpack 4 +1
I write a plugin with following:
class DemoPlugin {
constructor(options) {
assert(options, 'options is required');
}
public apply(compiler) {
compiler.hooks.done.tapAsync('monitor', (stats, callback) => {
console.log('xxx);
setTimeout(callback(), 1000);
});
}
}
The error message is:
Could not find a matching event to end plugins DemoPlugin/Compiler/done { id: 12136 }
If I use compiler.hooks.done.tap
, the error message will disappear
It seems like speed-measure-webpack-plugin cannot support tapAsync function
Solved it. I fix it by using setImmediate:
compiler.hooks.done.tapAsync('monitor', (stats, callback) => {
console.log('xxx);
setImmediate(async () => { callback() });
});
@stephencookdev I am encountering a similar error:
Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 28 }
I'm getting the same as @vidal7 (Could not find a matching event to end plugins Object/Compiler/afterEmit
) when using stylelint-webpack-plugin.
@stephencookdev I am encountering a similar error:
Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 28 }
the same error for copy-webpack-plugin with webpack4
I am having this same problem as fengzilong with the copy-webpack-plugin. I would really like to fix this. Any ideas?
@guptakvgaurav managed to get the following error with his webpack set-up:
with the following webpack config:
webpack version - 2.6 smp version - 1.1.3