To solve the problem of the front-end project, uniapp runs the WeChat development tool applet, there is a × initialize error, and the browser cannot run

Project scenario:

Uniapp does not know how to configure small programs and multi-terminal web pages to make the project run.

An inoperable error will be reported.

[WeChat Mini Program Developer Tools] - initialize
[WeChat Mini Program Developer Tools]
[WeChat Mini Program Developer Tools] × IDE may already started at port , trying to connect as shown in the figure


Problem Description

This is because the security settings and runtime settings are not configured properly.

First, configure the security settings,

① Open the WeChat development tool, click Settings, as shown in the figure

②Open the service port

③Turn off the automatic saving of settings, and then perform running configuration in Hbuilderx

Two, run configuration

①Open hbuilderx, click Run, and then click Run Settings in the WeChat applet

②In the running settings, configure WeChat development tools and browsers

Copy the WeChat development work installation address directly into the input box

Copy the browser installation address directly into the input box

③Close the running settings and save them automatically


Finally run:

Mini Program : Open the Mini Program Simulator, WeChat Developer Tools

Mobile web browser:


Author's last article:

Installation, construction and operation of vue-cli5.0 scaffolding_Italian Blog-CSDN Blog_vue4.0 Scaffolding Vue CLI is a complete system based on Vue.js for rapid development. Open the magnifying glass and enter cmd, and jump out of the command box. After installation, check whether the installation is successful. After pressing Enter, the following will appear, select according to the project. Here the author chooses the third one, Manually select features to customize the required configuration. When I got here, I asked whether to choose vue3 or vue2. According to my own needs, the author chose vue2. Then, choose whether to use the route history router or whether the path has a # number. It is recommended to choose N, so that the server does not need to be configured. This part is almost finished, which means that the configuration of the file is placed in package.json or placed. https://blog.csdn.net/weixin_43928112/article/details/125919544

Guess you like

Origin blog.csdn.net/weixin_43928112/article/details/126042481