taro 引用 leancloud-realtime-plugin-typed-messages typed-messages.min.js 报错 Error: Cannot find module 'net'
@sdjdd
你好,推测是 typed-message 插件使用了 node 版本的 leancloud-storage ,导致在非 node 环境下出错。
据 taro 团队成员描述,taro 使用 webpack 构建应用,建议修改一下 taro 的配置,使其在构件时导入 package.json 中 browser field 指向的模块。