Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack 4 support #10

Closed
kenrick95 opened this issue Jan 30, 2018 · 3 comments
Closed

Webpack 4 support #10

kenrick95 opened this issue Jan 30, 2018 · 3 comments

Comments

@kenrick95
Copy link

I'm trying out Webpack 4 beta, and with this plugin, it throws the following error:

[path]/node_modules/tapable/lib/Tapable.js:63
                throw new Error(`Plugin could not be registered at '${name}'. Hook was not found.\n` +
                ^

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'.
    at Compilation.plugin ([path]/node_modules/tapable/lib/Tapable.js:63:9)
    at Compilation.deprecated [as plugin] (internal/util.js:47:15)
    at [path]/node_modules/inline-manifest-webpack-plugin/index.js:13:21
    at SyncHook.eval [as call] (eval at create ([path]/node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:17:1)
    at SyncHook.lazyCompileHook [as _call] ([path]/node_modules/tapable/lib/Hook.js:35:21)
    at Compiler.newCompilation ([path]/node_modules/webpack/lib/Compiler.js:400:26)
    at hooks.beforeCompile.callAsync.err ([path]/node_modules/webpack/lib/Compiler.js:432:29)
    at AsyncSeriesHook.eval [as callAsync] (eval at create ([path]/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook [as _callAsync] ([path]/node_modules/tapable/lib/Hook.js:35:21)
    at Compiler.compile ([path]/node_modules/webpack/lib/Compiler.js:427:28)
    at readRecords.err ([path]/node_modules/webpack/lib/Compiler.js:217:11)
    at Compiler.readRecords ([path]/node_modules/webpack/lib/Compiler.js:324:11)
    at hooks.run.callAsync.err ([path]/node_modules/webpack/lib/Compiler.js:214:10)
    at AsyncSeriesHook.eval [as callAsync] (eval at create ([path]/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
...
@sherlock1982
Copy link

Use the latest Webpack and Html-webpack-plugin version. Though there's another issue with this.
It's similar to this numical/script-ext-html-webpack-plugin#41

@almothafar
Copy link

almothafar commented Mar 16, 2018

A fork support webpack 4 is here: https://github.com/almothafar/webpack-inline-manifest-plugin

you can install it using npm i webpack-inline-manifest-plugin -D so webpack-inline-manifest-plugin instead of inline-manifest-webpack-plugin

@szrenwei
Copy link
Owner

szrenwei commented May 7, 2018

updated!!! please use the v4 of this plugin, sorry for update so late..

@szrenwei szrenwei closed this as completed May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants