都按照要求配置了,报这个是什么原因呢
VM3902 WAService.js:2 SystemError (jsEnginScriptError)
Component is not found in path "plugin://chatbot/chat" (using by "pages/index/index")
Error: Component is not found in path "plugin://chatbot/chat" (using by "pages/index/index")
app.json 中配置
"plugins": { "chatbot": { "version": "1.1.0", "provider": "wx738958e0f4c894f9" } },
页面的json配置
{ "usingComponents": { "chat": "plugin://chatbot/chat" } }
在页面的配置json内进行配置 "plugin://chatbot/chat" 还有 var plugin = requirePlugin("chatbot"); chatbot 名字 与 app.json 中配置 中的插件名字一致,
而官方文档 app.json插件名是 myPlugin,requirePlugin也是 requirePlugin("myPlugin");页面的配置json内 却是 "plugin://chatbot/chat" ,官方文档不够严谨