Common exceptions and solutions for uni-app development

Preface

uni-app is a framework for developing all front-end applications based on Vue.js. Developers write a set of codes that can be published to iOS, Android, Web (responsive), and various small programs (WeChat/Alipay/Baidu/Toutiao/ QQ/Dingding/Taobao), Kuaiapp and other platforms.
Some exceptions may be encountered during the development process. These exceptions and their solutions are summarized as follows.

1. Call the WeChat developer tool to report an error IDE service port disabled

After developing the project under HBuilderX, when you want to use the applet simulator to run and debug, the console error is as follows:

21:48:18.851 [微信小程序开发者工具] [error] IDE service port disabled. To use CLI Call, please enter y to confirm enabling CLI capability, or manually open IDE -> Settings -> Security Settings, and set Service Port On.
21:48:18.859 [微信小程序开发者工具] For more details see: https://developers.weixin.qq.com/miniprogram/en/dev/devtools/cli.html
21:48:18.859 [微信小程序开发者工具] [error] 工具的服务端口已关闭。要使用命令行调用工具,请在下方输入 y 以确认开启,或手动打开工具 -> 设置 -> 安全设置,将服务端口开启。
21:48:18.866 [微信小程序开发者工具] 详细信息: https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html

At this time, it is because the WeChat developer tool has not opened the service port, just follow the prompts 打开微信开发者工具 -> 设置 -> 安全设置 -> 开启服务端口, as follows:
Open the WeChat Developer Tools service port

Guess you like

Origin blog.csdn.net/CUFEECR/article/details/111086113
Recommended