2 lgwgrjvoqlmqfa7067 lgwgrjvoqlmqfa7067 于 2017.08.30 22:45 提问

通过yarn启动web项目出错

小弟最近从github上下载了一个网页的项目,但是通过yarn来启动程序时,出现了下面的错误。有没有哪位大神遇到过同样的问题,能不吝指教小弟一下,不胜感激~

TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
at usedChunks.reduce (D:\l\node_modules\webpack\lib\optimize\CommonsChunkPlugin.js:296:29)
at Array.reduce (native)
at CommonsChunkPlugin.getExtractableModules (D:\l\node_modules\webpack\lib\optimize\CommonsChunkPlugin.js:295:46)
at targetChunks.forEach (D:\l\node_modules\webpack\lib\optimize\CommonsChunkPlugin.js:136:38)
at Array.forEach (native)
at Compilation.compilation.plugin (D:\l\node_modules\webpack\lib\optimize\CommonsChunkPlugin.js:102:18)
at Compilation.applyPluginsBailResult1 (D:\l\node_modules\tapable\lib\Tapable.js:140:27)
at Compilation.seal (D:\l\node_modules\webpack-dev-server\node_modules\webpack\lib\Compilation.js:571:9)
at D:\l\webpack-dev-server\node_modules\webpack\lib\Compiler.js:488:16
at D:\l\node_modules\tapable\lib\Tapable.js:289:11
at _addModuleChain (D:\l\node_modules\webpack-dev-server\node_modules\webpack\lib\Compilation.js:477:11)
at processModuleDependencies.err (D:\l\node_modules\webpack-dev-server\node_modules\webpack\lib\Compilation.js:448:13)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
error Command failed with exit code 1.
error Command failed with exit code 1.
error Command failed with exit code 1.

1个回答

cy309173854
cy309173854   2017.08.31 09:58

Cannot read property 'Symbol(Symbol.iterator)' of undefined
应该是这个参数没有设置吧?

Csdn user default icon
上传中...
上传图片
插入图片