happypack icon indicating copy to clipboard operation
happypack copied to clipboard

error with mini-css-extract-plugin

Open joebnb opened this issue 6 years ago • 10 comments

using with happypack it will throw TypeError: Cannot read property 'outputOptions' of undefined

I wonder if you could help me with this problem

this is my webpack config

//plugin
new HappyPack(HappyPackCfg.sass),

module.exports.sass = {
  id: 'sass',
  threadPool: happyThreadPool,
  verbose: false,
  loaders: [loader.cssHot,loader.cssExtract,loader.css, loader.postcss, loader.sass]
};


//rule
{
    test: /\.s[c|a]ss$/,
    use: [ getModulePath('happypack/loader?id=sass')]
  }

//loader
module.exports.sass = {
  id: 'sass',
  threadPool: happyThreadPool,
  verbose: false,
  loaders: [loader.css-hot-loader,loader.mini-css-extract-plugin,loader.css, loader.postcss, loader.sass]
};

image

mini-css-extract-plugin: 0.4.2 webpack:4.18 happypack:5.00

joebnb avatar Sep 13 '18 02:09 joebnb

Getting this error as well, similar configuration

richardsolomou avatar Sep 13 '18 15:09 richardsolomou

https://github.com/webpack-contrib/mini-css-extract-plugin/issues/273 the same issue in different repo

joebnb avatar Sep 14 '18 07:09 joebnb

#223 maybe the same

alienzhou avatar Oct 23 '18 09:10 alienzhou

get this error as well

huanghanyue avatar Mar 21 '19 08:03 huanghanyue

Has this bug been fixed?

Jam1zhu avatar Jun 10 '19 01:06 Jam1zhu

Got this error as well, have no idea how to fix it

AILINGANGEL avatar Aug 11 '19 13:08 AILINGANGEL

hi guys, any update about this issue?

wangdahoo avatar May 01 '20 05:05 wangdahoo

any news please ?

hallya avatar Aug 27 '20 11:08 hallya

the same

LaughSun0513 avatar Sep 04 '20 07:09 LaughSun0513

just like this:

{
  test: /.css$/,
  use: [cssLoader, 'happypack/loader?id=css'],
},

Yang-yu-dong avatar Oct 15 '20 09:10 Yang-yu-dong