-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
this.htmlWebpackPlugin.getHooks is not a function #1068
Comments
Sorry the issue quality is very low. |
Maybe related to facebook/create-react-app#5465 |
@fabioelia could you please tell me more about that?
Older versions don't provide the static function. |
Having the same issue after installing alpha-2 and trying to build my app with webpack4 (and the config provided in react-create-app). What information do you need to investigate @jantimon ? Running on: Windows, node 8.12.0 |
Maybe you have multiple html-webpack-plugin versions installed? |
Indeed, sorry for the false bug. Everything's ok for me :) |
I am running on OSX 10.11, and I keep all software updated. I tried running |
To add another data point here, I encountered this when upgrading What resolved it was @kylealwyn's suggestion facebook/create-react-app#5465 (comment), where in my build.js I had to change new InterpolateHtmlPlugin(env.raw), to new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw), |
I'm getting this issue from html-webpack-harddisk-plugin. https://github.com/jantimon/html-webpack-harddisk-plugin/blob/master/index.js#L22-L24 EDIT: seems like some other error in my process caused this one. |
@philihp |
I'm updated a html-webpack-plugin from 3.2.0 to 4.0.0-alpha.2, but some problem happened yet. |
|
@snoblenet what is https://www.npmjs.com/package/html-webpack-plugin/v/4.0.0-alpha.2 ? |
All published versions can be found here: https://www.npmjs.com/package/html-webpack-plugin?activeTab=versions Please use |
when I update html-webpack-plugin for @4.0.0-beta.5 but there is another error. Cannot find module 'import-local' but I never import this module?? |
Just wanted to chime in on this issue. I have a react app created using I executed |
I remove all the directory of node_modules . npm install again it is ok for me |
Strange... I tried this again just now by removing node_modules after running
|
i just updated my create-react-app application from webpack 3 to 4 and got the |
@adambreznicky Thanks! It's working your solution. |
Getting this error on Linux system, but it's working fine on windows system.
The text was updated successfully, but these errors were encountered: