vue3+js 使用mqtt5.3.0 在H5下正常在微信小程序报错TypeError: Cannot read property 'language' of undefined

3***@qq.com
- 发布:2023-11-29 17:28
- 更新:2025-07-28 10:33
- 阅读:611
vue3+js 使用mqtt5.3.0 在H5下正常在微信小程序报错TypeError: Cannot read property 'language' of undefined
分类:uni-app
4 个回复
峥小晨
同样的问题,解决了吗老哥
1***@qq.com
是微信小程序不支持mqtt,要下载paho-mqtt
1***@qq.com
换成mqtt4.1.0版本,不要用import mqtt from ‘mqtt' 使用这种形势引入import mqtt from 'mqtt/dist/mqtt.js',还报错改一下源码
4***@qq.com
^5.10.3 报同样的错误 解决了吗老哥
3***@qq.com
问一下 你的这个问题 解决了吗
2024-12-25 11:15