themes-switch icon indicating copy to clipboard operation
themes-switch copied to clipboard

Doesn't work with MiniCssExtractPlugin v1.x

Open rohit-gohri opened this issue 4 years ago • 4 comments

Receive this error:

Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'moduleFilename'. These properties are valid:
   object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }

rohit-gohri avatar Dec 29 '20 20:12 rohit-gohri

Thanks for your feedback. The root cause is that the moduleFilename option was removed in MiniCssExtractPlugin v1.x. I fixed it in the latest version, now it can support both v0.x and v1.x.

terence55 avatar Jan 04 '21 07:01 terence55

Awesome. Will try it out later, paused work on dark-mode for now. Can close the issue.

rohit-gohri avatar Jan 04 '21 07:01 rohit-gohri

error with MiniCssExtractPlugin v0.9

Error: Cannot find module 'mini-css-extract-plugin/dist/plugin-options.json'

meteor199 avatar Feb 07 '21 07:02 meteor199

error with MiniCssExtractPlugin v0.9

Error: Cannot find module 'mini-css-extract-plugin/dist/plugin-options.json'

Fixed in the commit https://github.com/terence55/themes-switch/commit/104340c2294f8e8822977b5acdf83e6a8e143a57 Thanks.

terence55 avatar Aug 10 '22 06:08 terence55