Jhipster:CommonsChunkPlugin.js上的纱线启动任务问题

时间:2017-09-08 14:37:09

标签: jhipster yarnpkg

我已升级到Jhipster 4.7.2 当我运行yarn start时, 我得到了:

> home/myPc/dev/workspace/myApp/node_modules/webpack/lib/optimize/CommonsChunkPlugin.js:296
>           for(const module of chunk.modulesIterable) {
>                           ^ TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
>     at usedChunks.reduce (/home/myPc/dev/workspace/myApp/node_modules/webpack/lib/optimize/CommonsChunkPlugin.js:296:27)
>     at Array.reduce (native)
>     at CommonsChunkPlugin.getExtractableModules (/home/myPc/dev/workspace/myApp/node_modules/webpack/lib/optimize/CommonsChunkPlugin.js:295:46)
>     at targetChunks.forEach (/home/myPc/dev/workspace/myApp/node_modules/webpack/lib/optimize/CommonsChunkPlugin.js:136:38)
>     at Array.forEach (native)
>     at Compilation.compilation.plugin (/home/myPc/dev/workspace/myApp/node_modules/webpack/lib/optimize/CommonsChunkPlugin.js:102:18)
>     at Compilation.applyPluginsBailResult1 (/home/myPc/dev/workspace/myApp/node_modules/tapable/lib/Tapable.js:122:27)
>     at Compilation.seal (/home/myPc/dev/workspace/myApp/node_modules/webpack-dev-server/node_modules/webpack/lib/Compilation.js:571:9)
>     at /home/myPc/dev/workspace/myApp/node_modules/webpack-dev-server/node_modules/webpack/lib/Compiler.js:488:16
>     at /home/myPc/dev/workspace/myApp/node_modules/tapable/lib/Tapable.js:271:11
>     at _addModuleChain (/home/myPc/dev/workspace/myApp/node_modules/webpack-dev-server/node_modules/webpack/lib/Compilation.js:477:11)
>     at processModuleDependencies.err (/home/myPc/dev/workspace/myApp/node_modules/webpack-dev-server/node_modules/webpack/lib/Compilation.js:448:13)
>     at _combinedTickCallback (internal/process/next_tick.js:73:7)
>     at process._tickCallback (internal/process/next_tick.js:104:9)

你知道这个问题来自哪里吗?

0 个答案:

没有答案