美文网首页
【uni-app:error】微信开发者工具拒绝HBuilder

【uni-app:error】微信开发者工具拒绝HBuilder

作者: 大Q本Q | 来源:发表于2019-07-17 11:16 被阅读0次

平台

Mac OS、HBuilderX

问题

uni-app运行编译到微信小程序开发者工具时,报如下错误


image.png

解决

  1. 打开“微信开发者工具”
  2. 打开设置 - 安全设置
  3. 安全设置界面里,开启服务端口


    image.png

11:06:44.037 项目 'uni-app-demo' 开始编译...
11:06:45.739 当前项目编译模式:自定义组件模式。编译模式差异见:https://ask.dcloud.net.cn/article/35843
11:07:02.653 DONE Build complete. Watching for changes...
11:07:02.653 项目 'uni-app-demo' 编译成功.
11:07:02.660 正在启动微信开发者工具...
11:07:03.192 [微信小程序开发者工具] Initializing...
11:07:03.192 [微信小程序开发者工具]
11:07:03.200 [微信小程序开发者工具] IDE service port disabled. To use CLI Call, open IDE -> Settings -> Security Settings, and set Service Port On.
11:07:03.200 [微信小程序开发者工具] For more details see: https://developers.weixin.qq.com/miniprogram/en/dev/devtools/cli.html
11:07:03.212 [微信小程序开发者工具]
11:07:03.222 [微信小程序开发者工具] 工具的服务端口已关闭。要使用命令行调用工具,请打开工具 -> 设置 -> 安全设置,将服务端口开启。
11:07:03.246 [微信小程序开发者工具] 详细信息: https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html
11:07:03.261 [微信小程序开发者工具]
11:07:03.274 微信开发者工具拒绝HBuilderX访问,请根据上述提示,在微信开发者工具中开启服务端口

相关文章

网友评论

      本文标题:【uni-app:error】微信开发者工具拒绝HBuilder

      本文链接:https://www.haomeiwen.com/subject/faxqlctx.html