when build with [email protected],the shell show that info:
const { Template, util: { createHash } } = _webpack2.default;
^
TypeError: Cannot destructure property `createHash` of 'undefined' or 'null'.
it's need to update wepback from ^4.1.0 to ^4.3.0
I had to downgrade from webpack 4.5 to 4.4 to get this to work with v0.4 of the plugin.
I updated to Webpack ^4.8.3 and my build compiled again.
I'm getting this error on webpack 4.16
This is happenning to me with webpack 4.16 and mini-css-extract-plugin 0.4.1.
Any solutions?
i upgraded Nextjs 6.1.1 to Nextjs 7.0.2.
and it works!
npm i mini-css-extract-plugin -D fixed it for me
fixed by installing latest version of webpack.
npm i webpack --save
Using next version 8.0.4 - adding webpack at 4.8.3 as a dev dependency solved the problem, but I couldn't for the life of me say what was broken or how the update fixed it. Blew at least 3 hours today battling my dependencies. Intensely frustrating - thanks a million @EddyVinck, you're a lifesaver!
same error in [email protected] and @4.34.0
This is the only thing that worked for me:
npm install -g npm@latest
rm -rf node_modules
npm install
Most helpful comment
it's need to update wepback from ^4.1.0 to ^4.3.0