Reputation: 377
I installed a new react project but when compiling the project with webpack 4 it returns the following ERROR in compilation.
fileDependencies.push is not a function
Thanks in advance
Upvotes: 1
Views: 2411
Reputation: 504
I resolved this by installing the latest version of html-webpack-plugin
as a devDependency.
html-webpack-plugin
instead of webpack-html-wplugin
Good Luck...
Upvotes: 5