uniapp 开发备忘录-防坑指南
- npm run dev:mp-weixin 编译微信小程序报错:
[plugin:uni:mp-using-component] Expected ‘,’ or ‘}’ after property value in JSON at position
解决方案:升级uniapp 到最新 alpha 版。(2024年7月13日)
npx @dcloudio/uvm@latest alpha
- RangeError: Maximum call stack size exceeded
- l-painter: 报错 CanvasRenderingContext2D.drawImage: Passed-in canvas is empty
<l-painter ref="painterRef" hidden @success="onSuccess" />
原因:hidden 属性 与 unocss 冲突,修改为 :hidden="true"
- 小程序无法获取昵称、上传图片。原因:新版本中,获取用户隐私数据需要先更新【用户隐私保护指引】