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
I directly upgraded the version library to 2.16.0, now, the developer tools can also be debugged