Closed charklewis closed 3 years ago
I have the same issue.
The failure happens in index.js on the line:
compiler.hooks.afterDone.tap('webpack-shell-plugin-next', this.afterDone);
I commented the line out and then didn't have any issue. I confirmed that doing this does remove the the 'afterDone' hook as I suspected it would. I am just pointing out that there is something wrong with the setup of the 'afterDone' hook.
I reviewed the documentation again and realized I'm using Webpack 4 so I can't use the most up to date version of webpack-shell-plugin-next. I removed it and then reinstalled it at version 1.*. I no longer see the issue with unmodified code.
Hello. I can't repeat this mistake. Can you try updating the webpack and if that doesn't help, then create a repository with an example?
I have seen a new error come through that I can't seem to debug or work out what is going.
I have console logged the
compiler.hooks
from theWebpackShellPlugin.prototype.apply
function and they are listed below.My dev dependancies are very simple:
Similar with my web pack config:
I have verified that my version is
2.0.8
forwebpack-shell-plugin-next
and5.9.0
forwebpack
.