React-styleguidist: Webpack 4 breaking change

Created on 30 Mar 2018  路  3Comments  路  Source: styleguidist/react-styleguidist

My project was working fine then I upgraded to webpack 4 and react-styleguidist is blowing up:

Error: Plugin could not be registered at 'html-webpack-plugin-before-html-processing'. Hook was not found.
BREAKING CHANGE: There need to exist a hook at 'this.hooks'. To create a compatiblity layer for this hook, hook into 'this._pluginCompat'.
Error: Plugin could not be registered at 'html-webpack-plugin-before-html-processing'. Hook was not found.
BREAKING CHANGE: There need to exist a hook at 'this.hooks'. To create a compatiblity layer for this hook, hook into 'this._pluginCompat'.
  • Note - my only configs are
module.exports = {
  template: 'src/templates/index.html',
}

Let me know if I can help with a PR or other, will update if I find some resolution.

duplicate

Most helpful comment

All 3 comments

I'm getting the same error on version 8.0.0 and webpack 4

configs are the same as well

Could you publish a demo project? I don't know what's html-webpack-plugin-before-html-processing but it's something from your project, not styleguidist.

Was this page helpful?
0 / 5 - 0 ratings