Skip to content

html-webpack-plugin-before-html-processing error while working with webpack 4 #875

Closed
@duzy

Description

@duzy

Prerequisites

  • WebPack 4.0.1

Description

Not working with webpack ^4.0.1

Error Message & Stack Trace

...
Creating an optimized production build...
Failed to compile.

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'.


npm ERR! code ELIFECYCLE
npm ERR! errno 1
...

Config

Copy the relevant section from webpack.config.js:

    "webpack": "^4.0.1",
    "webpack-cli": "^2.0.10",

Environment

Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions