3
我正在使用GatsbyJS創建一個靜態網站,並且在嘗試生成生產版本時遇到了幾個問題。GatsbyJS - 解壓縮文本webpack插件錯誤
一切都正常運行,當我做gatsby develop
但是當我嘗試gatsby build
我看到下面的錯誤(S)現在:
/home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/index.js:22
if(c.initial) return;
^
TypeError: Cannot read property 'initial' of undefined
at ExtractTextPlugin.<anonymous> (/home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/index.js:22:8)
at Array.forEach (native)
at ExtractTextPlugin.mergeNonInitialChunks (/home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/index.js:21:16)
at ExtractTextPlugin.<anonymous> (/home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/index.js:275:12)
at Array.forEach (native)
at ExtractTextPlugin.<anonymous> (/home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/index.js:273:21)
at /home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:52:16
at Object.async.forEachOf.async.eachOf (/home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:236:30)
at Object.async.forEach.async.each (/home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:209:22)
at ExtractTextPlugin.<anonymous> (/home/coder/Developer/portfolio/node_modules/extract-text-webpack-plugin/index.js:237:10)
at Compilation.applyPluginsAsync (/home/coder/Developer/portfolio/node_modules/tapable/lib/Tapable.js:71:13)
at Compilation.seal (/home/coder/Developer/portfolio/node_modules/webpack/lib/Compilation.js:525:7)
at Compiler.<anonymous> (/home/coder/Developer/portfolio/node_modules/webpack/lib/Compiler.js:397:15)
at /home/coder/Developer/portfolio/node_modules/tapable/lib/Tapable.js:103:11
at Compilation.<anonymous> (/home/coder/Developer/portfolio/node_modules/webpack/lib/Compilation.js:445:10)
at /home/coder/Developer/portfolio/node_modules/webpack/lib/Compilation.js:417:12
請讓我知道,如果我已經發布的信息太多或可提高問題的質量。我想盡可能具體。
感謝您的幫助!