nwb icon indicating copy to clipboard operation
nwb copied to clipboard

mini-css-extract-plugin failing when biuilding

Open kmachado opened this issue 5 years ago • 2 comments

hello, before all great job 👏

This issue is a:

  • Bug report

I just update to 0.23.0 recently and found nwb build-react-component --copy-files fails building with error: TypeError: Cannot destructure property createHash of 'undefined' or 'null'

I just rolled back to previous working version 0.21.x and everything working again 😃 this is an issue related to mini-css-extract-plugin failing for different webpack versions and reported on webpack-contrib/mini-css-extract-plugin

seems to be fixed updating webpack 😃

thanks again and hope this to be an easy one 😉

kmachado avatar Aug 13 '18 03:08 kmachado

Which version of webpack does npm ls --depth=0 show you?

The minimum required version for this plugin is 4.4 and [email protected] is using [email protected].

insin avatar Aug 13 '18 09:08 insin

I am still getting this issue with nwb v0.23.0, because it seems the mini-css-extract-plugin is still not working on 4.16: https://github.com/webpack-contrib/mini-css-extract-plugin/issues/69#issuecomment-413974708

I think releasing a version with the latest version of webpack is the way to fix this.

patrickmcelwee avatar Nov 30 '18 16:11 patrickmcelwee