bootstrap-loader: extract-text-webpack-plugin error after updated

"webpack": "^2.1.0-beta.8",
 "extract-text-webpack-plugin": "^2.0.0-beta.1",
 "bootstrap-loader": "^1.0.10",
ERROR in ./~/bootstrap-loader/lib/bootstrap.loader.js?extractStyles!./~/bootstrap-loader/no-op.js
Module build failed: Error: Breaking change: extract now only takes a single argument. Either an options object *or* the loader(s).
Example: if your old code looked like this:
    ExtractTextPlugin.extract('style-loader', 'css-loader')

You would change it to:
    ExtractTextPlugin.extract({ notExtractLoader: 'style-loader', loader: 'css-loader' })

The available options are:
    loader: string | object | loader[]
    notExtractLoader: string | object | loader[]
    publicPath: string

    at Function.ExtractTextPlugin.extract (/Users/shensi/codes/uhccjProject/uhccjMain/node_modules/extract-text-webpack-plugin/index.js:171:9)
    at exports.default (/Users/shensi/codes/uhccjProject/uhccjMain/node_modules/bootstrap-loader/lib/utils/buildExtractStylesLoader.js:21:28)
    at Object.module.exports.pitch (/Users/shensi/codes/uhccjProject/uhccjMain/node_modules/bootstrap-loader/lib/bootstrap.loader.js:128:86)
 @ ./~/bootstrap-loader/extractStyles.js 1:0-58
 @ multi app

ERROR in chunk vendor [entry]
app.0b1ea0230a51c0a8c213.js
Chunk.entry was removed. Use hasRuntime()

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (16 by maintainers)

Most upvoted comments

@vinhlh @colinshen It’s good to go now. Just install bootstrap-loader@2.0.0-beta