Bishoy Bisahi
Bishoy Bisahi

Reputation: 377

Webpack 4 compiler error ERROR in compilation.fileDependencies.push is not a function

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

Answers (1)

A. Wentzel
A. Wentzel

Reputation: 504

I resolved this by installing the latest version of html-webpack-plugin as a devDependency.

Also, try html-webpack-plugin instead of webpack-html-wplugin

Good Luck...

Upvotes: 5

Related Questions