guerlab
guerlab
  • 发布:2019-09-19 12:13
  • 更新:2019-09-19 12:13
  • 阅读:1509

HBuilderX运行到手机或模拟器报错

分类:HBuilderX

运行IPhone 8 plus 模拟器控制台提示错误

12:11:36.691 Starting type checking service...  
12:11:36.697 Using 1 worker with 2048MB memory limit  
12:11:48.686 No type errors found  
12:11:48.697 Version: typescript 3.5.2  
12:11:48.724 Time: 2638ms  
12:11:48.877 /Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1  
12:11:48.890 (function (exports, require, module, __filename, __dirname) { "use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var fs=_interopDefault(require("fs")),path=_interopDefault(require("path")),glob=_interopDefault(require("glob")),fs$1=_interopDefault(require("fs-extra")),child_process=require("child_process"),merge=_interopDefault(require("merge")),babel=_interopDefault(require("../../uniapp-cli/node_modules/@babel/core")),async=require("async"),async__default=_interopDefault(async);const chalk=require("chalk"),os=require("os"),crypto=require("crypto"),isWin=/^win/.test(process.platform),normalizePath=e=>isWin?e.replace(/\\/g,"/"):e,wccRelativePath=isWin?"./package.nw/js/vendor/wcc.exe":"./Contents/Resources/app.nw/js/vendor/wcc",wccOldMacRelativePath="./Contents/Resources/package.nw/js/vendor/wcc",wcscRelativePath=isWin?"./package.nw/js/vendor/wcsc.exe":"./Contents/Resources/app.nw/j  
12:11:48.913 TypeError: Cannot convert undefined or null to object  
12:11:48.931     at Function.keys (<anonymous>)  
12:11:48.949     at generateServiceHtml$1 (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:14724)  
12:11:48.968     at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:16083  
12:11:48.968     at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/node_modules/async/dist/async.js:3866:24  
12:11:48.984     at eachOfArrayLike (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/node_modules/async/dist/async.js:1055:9)  
12:11:49.004     at eachOf (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/node_modules/async/dist/async.js:1103:5)  
12:11:49.034     at _parallel (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/node_modules/async/dist/async.js:3865:5)  
12:11:49.035     at Object.parallelLimit [as parallel] (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/node_modules/async/dist/async.js:3948:5)  
12:11:49.060     at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:16220  
12:11:49.082     at ChildProcess.s.on.e (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:4726)  
12:11:49.105     at emitTwo (events.js:126:13)  
12:11:49.133     at ChildProcess.emit (events.js:214:7)  
12:11:49.160     at maybeClose (internal/child_process.js:925:16)  
12:11:49.184     at Socket.stream.socket.on (internal/child_process.js:346:11)  
12:11:49.186     at emitOne (events.js:116:13)  
12:11:49.212     at Socket.emit (events.js:211:7)  
2019-09-19 12:13 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复