npm run build
> test-vue@1.0.0 build D:\nginx\html\bus_tmp
> node build/build.js
- building for production...D:\nginx\html\bus_tmp\node_modules\extract-text-webpack-plugin\dist\index.js:183
? ? compiler.hooks.thisCompilation.tap(plugin, compilation => {
? ? ? ? ? ? ? ? ? ^
TypeError: Cannot read property 'thisCompilation' of undefined
? ? at ExtractTextPlugin.apply (D:\nginx\html\bus_tmp\node_modules\extract-text-webpack-plugin\dist\index.js:183:20)
? ? at Compiler.apply (D:\nginx\html\bus_tmp\node_modules\webpack\node_modules\tapable\lib\Tapable.js:375:16)
? ? at webpack (D:\nginx\html\bus_tmp\node_modules\webpack\lib\webpack.js:32:19)
? ? at err (D:\nginx\html\bus_tmp\build\build.js:19:3)
? ? at next (D:\nginx\html\bus_tmp\node_modules\rimraf\rimraf.js:75:7)
? ? at CB (D:\nginx\html\bus_tmp\node_modules\rimraf\rimraf.js:111:9)
? ? at D:\nginx\html\bus_tmp\node_modules\rimraf\rimraf.js:137:14
? ? at FSReqWrap.oncomplete (fs.js:153:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test-vue@1.0.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test-vue@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解決方法:
先執(zhí)行:npm uninstall --save-dev extract-text-webpack-plugin
再執(zhí)行:npm install --save-dev extract-text-webpack-plugin