在HBuilder X中【运行】--【小程序】--【运行设置】,小程序运行配置,将【微信开发者工具】的安装路径配置进去,首次运行会自动让你填写;
1、hbuildx运行到微信开发者工具报错
Error: Unbalanced delimiter found in string 错误
这是由于自己改了main.js中的
// #ifdef VUE3
...
...
// #endif
要么都删掉,否则一定时对称的。
2、微信小程序的console页面报错
VM580 WAService.js:1 TypeError: Cannot read property 'forceUpdate' of undefined
原因:没有在开发者工具中配置AppId,在右上角点击【详情】,找到AppId修改即可。