webpack.config.js
var ExtractTextPlugin = require(\"extract-text-webpack-plugin\");
I immediately receive this error if I just
Use $ npm i -D extract-text-webpack-plugin@next and this would solve your issue
$ npm i -D extract-text-webpack-plugin@next
Let me know if this worked.
https://github.com/webpack/webpack/issues/6568