通过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个回答

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问