Remax多端开发框架中引入小程序视频直播SDK失败

求如何在remax引入Agora_Miniapp_SDK_for_WeChat.js,引入进来报错。

麻烦提供一下具体报错信息

错误信息
VM88:1 pages/index/index.js:
TypeError: Cannot assign to read only property ‘exports’ of object ‘#’
at index.js:28728
at Module. (index.js:28729)
at Module…/sdk/Agora_Miniapp_SDK_for_WeChat.js (index.js:33648)
at webpack_require (runtime.js? [sm]:80)
at Module…/src/utils/helper.ts (index.js:33814)
at webpack_require (runtime.js? [sm]:80)
at Module…/src/pages/index/index.tsx (index.js:33681)
at webpack_require (runtime.js? [sm]:80)
at Object.1 (index.js:34196)
at webpack_require (runtime.js? [sm]:80)
console.error @ VM88:1
r @ app.js? [sm]:5891
wrapFn @ appservice?t=1600844580388:10466
require @ VM97 WAService.js:2
(anonymous) @ VM110:15
doWhenAllScriptLoaded @ appservice?t=1600844580388:10529
scriptLoaded @ appservice?t=1600844580388:10549
script.onload @ appservice?t=1600844580388:10557
VM88:1 MiniProgramError
Cannot assign to read only property ‘exports’ of object ‘#’
TypeError: Cannot assign to read only property ‘exports’ of object ‘#’
at http://127.0.0.1:56089/appservice/pages/index/index.js:28728:152
at Module. (http://127.0.0.1:56089/appservice/pages/index/index.js:28729:2)
at Module…/sdk/Agora_Miniapp_SDK_for_WeChat.js (http://127.0.0.1:56089/appservice/pages/index/index.js:33648:30)
at webpack_require (http://127.0.0.1:56089/appservice/runtime.js:100:31)
at Module…/src/utils/helper.ts (http://127.0.0.1:56089/appservice/pages/index/index.js:33814:23)
at webpack_require (http://127.0.0.1:56089/appservice/runtime.js:100:31)
at Module…/src/pages/index/index.tsx (http://127.0.0.1:56089/appservice/pages/index/index.js:33681:71)
at webpack_require (http://127.0.0.1:56089/appservice/runtime.js:100:31)
at Object.1 (http://127.0.0.1:56089/appservice/pages/index/index.js:34196:18)
at webpack_require (http://127.0.0.1:56089/appservice/runtime.js:100:31)

代码信息
const AgoraMiniappSDK = require("…/…/sdk/Agora_Miniapp_SDK_for_WeChat");

有npm包或者其他解决办法吗

稍等,我们在看

好的,辛苦了。

reamx将SDK.js放在public也不行,taro测试也不行,这是框架不支持还是sdk不支持,能否帮想下办法,有点急!!

现在这么多多端开发框架都可能会出现问题,希望处理一下。。

请问你们有解决办法没?毕竟还是这么多多端开发框架。

研发还在排查,有结论了会同步给你的

好的

问题可以解决吗。

经确认,目前不支持remax框架开发。

taro也不行是吧

是的,后续我们会对这块做调研,不过按照排期来看可能需要的周期比较长