收藏
回答

使用官方开发者工具构建TS项目,然后引入直播订阅组件,项目直接报错。

问题类型 插件 AppID 插件版本号 AppID 微信版本 基础库版本
Bug wx2b03c6e691cd7370 1.3.2 wx074c09c855452600 8.0.24 2.25.0

根据文档https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/liveplayer/component-api.html

使用官方开发者工具构建TS项目,在app.json里引入直播插件,然后在相关页面json引入直播订阅组件,项目直接报错。

[] [summer-compiler] Couldn't found the 'plugin-private://wx2b03c6e691cd7370/components/subscribe/subscribe.json' file relative to 'pages/index/index.json'
Error: [summer-compiler] Couldn't found the 'plugin-private://wx2b03c6e691cd7370/components/subscribe/subscribe.json' file relative to 'pages/index/index.json'
    at AppConf.loadComp (C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\graph\appconf.js:2:2499)
    at async AppConf.loadPage (C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\graph\appconf.js:2:2317)
    at async C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\graph\appconf.js:2:1457
    at async Recorder.run (C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\recorder.js:2:771)
    at async AppConf.loadApp (C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\graph\appconf.js:2:1337)
    at async AppConf.build (C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\graph\appconf.js:2:838)
    at async AppGraph.getConf (C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\graph\appgraph.js:2:428)
    at async SummerCompiler.getConf (C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\summer.js:2:3811)
    at async process. (C:\Program Files (x86)\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\summer\entry_process.js:1:1557)(env: Windows,mp,1.05.2204250; lib: 2.25.0)


最后一次编辑于  2022-07-18
回答关注问题邀请回答
收藏
登录 后发表内容