easy-team / egg-react-webpack-boilerplate

Egg React Server Side Render(SSR) / Client Sider Render(CSR)
https://easyjs.cn/egg-react
MIT License
671 stars 93 forks source link

本地windows下编译不会报错,在容器中编译 报错 #20

Closed zhouzhi3859 closed 6 years ago

zhouzhi3859 commented 6 years ago

本地windows下编译不会报错,在容器中编译 报错,错误信息如下 /home/jenkins/workspace/StartRead99ServerBuild/node_modules/mini-css-extract-plugin/dist/index.js:81 \ 14:58:13 const resource = this._identifier.split('!').pop(); \ 14:58:13 ^ 14:58:13 \ 14:58:13 TypeError: Cannot read property 'split' of undefined \ 14:58:13 at CssModule.nameForCondition (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/mini-css-extract-plugin/dist/index.js:81:39) \ 14:58:13 at Function.checkTest (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/lib/optimize/SplitChunksPlugin.js:307:52) \ 14:58:13 at Object.fn [as getCacheGroups] (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/lib/optimize/SplitChunksPlugin.js:247:35) \ 14:58:13 at compilation.hooks.optimizeChunksAdvanced.tap.chunks (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/lib/optimize/SplitChunksPlugin.js:513:38) \ 14:58:13 at SyncBailHook.eval [as call] (eval at create (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:16) \ 14:58:13 at SyncBailHook.lazyCompileHook [as _call] (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/node_modules/tapable/lib/Hook.js:35:21) \ 14:58:13 at Compilation.seal (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/lib/Compilation.js:1207:38) \ 14:58:13 at hooks.make.callAsync.err (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/lib/Compiler.js:547:17) \ 14:58:13 at _done (eval at create (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:9:1) \ 14:58:13 at _err3 (eval at create (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:56:22) \ 14:58:13 at _addModuleChain (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/lib/Compilation.js:1064:12) \ 14:58:13 at processModuleDependencies.err (/home/jenkins/workspace/StartRead99ServerBuild/node_modules/webpack/lib/Compilation.js:980:9) \ 14:58:13 at _combinedTickCallback (internal/process/next_tick.js:131:7) \ 14:58:13 at process._tickCallback (internal/process/next_tick.js:180:9) \ 14:58:13 npm ERR! code ELIFECYCLE \ 14:58:13 npm ERR! errno 1 \ 14:58:13 npm ERR! startread99-server@0.0.15 build:cross-env easywebpack build prod\ 14:58:13 npm ERR! Exit status 1 \ 14:58:13 npm ERR! \ 14:58:13 npm ERR! Failed at the startread99-server@0.0.15 build script. \ 14:58:13 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

hubcarl commented 6 years ago

如果还有问题,请直接反馈,第一时间解决,该问题先关闭。