[WeChat applet] Wechat developer tool debugs PC-side applet and reports error wx.getUserProfile is not a function solution

When debugging the WeChat applet in the developer tool, the error wx.getUserProfile is not a function is reported, but the real device debugging or mobile phone preview does not report an error. Don't worry, it is a problem of debugging the basic library.
To use this method, two conditions must be met
: 1. The version of the developer tool is not lower than 1.05.2103022;
2. The version of the basic library is not lower than 2.10.4

insert image description hereinsert image description hereI directly upgraded the version library to 2.16.0, now, the developer tools can also be debugged

Guess you like

Origin blog.csdn.net/weixin_41884808/article/details/115914659