8***@qq.com
8***@qq.com
  • 发布:2023-07-21 14:03
  • 更新:2024-05-12 19:38
  • 阅读:948

uniapp编译微信小程序失败报错Cannot read properties of undefined (reading 'renderer')

分类:HBuilderX

hbuilderx编辑运行微信小程序报错,H5可以正常运行。

错误代码:13:18:58.072 ​Browserslist: caniuse-lite is outdated. Please run:
13:18:58.073 npx update-browserslist-db@latest
13:18:58.075 Why you should do it regularly: https://github.com/browserslist/update-db#readme​
13:19:01.287 Module build failed (from ./node_modules/@dcloudio/webpack-uni-pages-loader/lib/index.js):
13:19:01.290 TypeError: Cannot read properties of undefined (reading 'renderer')
13:19:01.293 at weixinSkyline (E:\工具\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-pages-loader\lib\platforms\mp.js:217:17)
13:19:01.295 at E:\工具\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-pages-loader\lib\platforms\mp.js:371:33
13:19:01.297 at E:\工具\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-pages-loader\lib\platforms\mp-weixin\index.js:5:23
13:19:01.299 at Object.<anonymous> (E:\工具\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-pages-loader\lib\index-new.js:188:71)
13:19:01.300 at Object.<anonymous> (E:\工具\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-pages-loader\lib\index.js:58:35)

2023-07-21 14:03 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

要在manifest.json中配置小程序,开启ES5转ES6,希望能帮助到后面的人

喜欢技术的前端
  • 8***@qq.com (作者)

    谢谢,但不是这个问题,我遇到的是H5可以编译成功,编译小程序时失败报错。

    2023-07-21 16:09

  • 喜欢技术的前端

    回复 8***@qq.com: 可能是以来版本的问题,https://blog.csdn.net/Mr_Bobcp/article/details/126646978,希望帮助到你

    2023-07-21 16:16

  • c***@163.com

    回复 8***@qq.com: 大哥 这个报错 完成了嘛

    2024-06-13 14:46

要回复问题请先登录注册