I use extract-text-webpack-plugin 2.0.0-rc.3 with Webpack 2.2.1 and get this error when starting the build:
/node_modules/extract-text-webpack-plugin/index.js:259 var shouldExtract = !!(options.allChunks || chunk.isInitial()); ^ TypeError: chunk.isInitial is not a function
Here is my webpack.config.js:
'use strict'; const argv = require('yargs').argv; const ExtractTextPlugin = require("extract-text-webpack-plugin"); const webpack = require('webpack'); module.exports = (function () { let config = { entry : './' + process.env.npm_package_config_paths_source + '/main.js', output : { filename : 'main.js' }, watch : !!argv.watch, vue : { loaders : { js : 'babel-loader',
When I new ExtractTextPlugin("style.css") from the plugins array, the assembly is fine, but does not create style.css .
If I add the allChunks: true parameter, the error will be as follows:
/node_modules/webpack/lib/Chunk.js:80 return this.entrypoints.length > 0; ^ TypeError: Cannot read property 'length' of undefined
source share