TypeError: Cannot read property 'length' of undefined
10:05:20.276 at parseConfig (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\weapp-tools\lib\index.js:1:5593)
10:05:20.293 at index (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\weapp-tools\lib\index.js:1:15980)
10:05:20.293 at Promise (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:103:13)
10:05:20.301 at new Promise (<anonymous>)
10:05:20.302 at compiler.hooks.done.tapPromise.compilation (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:81:16)
10:05:20.313 at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:17:17)
10:05:20.316 at AsyncSeriesHook.lazyCompileHook (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)
10:05:20.331 at Watching._done (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Watching.js:97:28)
10:05:20.332 at compiler.emitRecords.err (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Watching.js:72:19)
10:05:20.343 at Compiler.emitRecords (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:375:39)
10:05:20.343 at compiler.emitAssets.err (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Watching.js:53:20)
10:05:20.351 at hooks.afterEmit.callAsync.err (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:361:14)
10:05:20.352 at _err0 (eval at create (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:20:1)
10:05:20.359 at callback (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\copy-webpack-plugin\dist\index.js:126:17)
10:05:20.366 at afterEmit (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\copy-webpack-plugin\dist\index.js:220:13)
10:05:20.367 at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:7:1)
10:05:20.376 [ERROR] 读取app.json失败...
10:05:20.390 ENOENT: no such file or directory, copyfile 'D:\cailewang\hehuorengit\unpackage\dist\dev.tmp\app-plus\manifest.json' -> 'D:\cailewang\hehuorengit\unpackage\dist\dev\app-plus\manifest.json'
10:05:20.391 Module build failed (from ./node_modules/@dcloudio/webpack-uni-pages-loader/lib/index.js):
10:05:20.401 TypeError: Cannot read property 'pages' of undefined
10:05:20.402 at module.exports (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-pages-loader\lib\platforms\app-plus\index.js:370:69)
10:05:20.409 at Object.module.exports (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-pages-loader\lib\index-new.js:77:71)
10:05:20.416 at Object.module.exports (D:\Download\HBuilderX.2.2.2.20190816.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-pages-loader\lib\index.js:45:35)
10:05:20.424 ERROR Build failed with errors.
报了以上错误,运行上一个版本是没问题的,可以正确编译到手机,可以更新以后,就出错了。
4 个回复
2***@qq.com
我也遇到同样的问题,应该是更新出问题了,等待明天更新。。。。。。
1***@qq.com
我也遇到bug
紫川丶
同样的bug 这个更新。。有点东西
1***@qq.com
同样的问题,希望尽快解决!