System:(实际为docker部署)
OS: Linux 3.10 Alpine Linux
CPU: (4) x64 Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz
Binaries:
Node: 20.16.0
Yarn: 4.1.1
Koishi:
Core: 4.18.3
Console: 5.29.3
想要在koishi的控制台直接对群聊进行发言与沟通,并实时查看群友交流记录,在
中看到推荐使用chat插件,但是搜索插件市场未找到。论坛搜索,根据
中发现,chat在受影响范围内,只能手动安装依赖。按照文章教程手动安装
koishi-plugin-chat
之后报错
2024-12-09 11:35:53 [I] loader apply plugin chat:89g5j5
2024-12-09 11:35:53 [W] app Error: property router is not registered, declare it asinject
to suppress this warning
at new ChatService (/koishi/node_modules/koishi-plugin-chat/lib/index.js:52:13)
at MainScope.apply (/koishi/node_modules/@cordisjs/core/lib/index.cjs:878:24)
at /koishi/node_modules/@cordisjs/core/lib/index.cjs:900:49
at MainScope.ensure (/koishi/node_modules/@cordisjs/core/lib/index.cjs:686:18)
at MainScope.start (/koishi/node_modules/@cordisjs/core/lib/index.cjs:900:12)
at MainScope.init (/koishi/node_modules/@cordisjs/core/lib/index.cjs:719:12)
at new MainScope (/koishi/node_modules/@cordisjs/core/lib/index.cjs:835:12)
at Proxy.plugin (/koishi/node_modules/@cordisjs/core/lib/index.cjs:1062:15)
at Proxy.forkPlugin (/koishi/node_modules/@koishijs/loader/lib/shared.js:279:19)
2024-12-09 11:35:53 [E] app TypeError: Cannot read properties of undefined (reading ‘get’)
at new ChatService (/koishi/node_modules/koishi-plugin-chat/lib/index.js:52:20)
at MainScope.apply (/koishi/node_modules/@cordisjs/core/lib/index.cjs:878:24)
at /koishi/node_modules/@cordisjs/core/lib/index.cjs:900:49
at MainScope.ensure (/koishi/node_modules/@cordisjs/core/lib/index.cjs:686:18)
at MainScope.start (/koishi/node_modules/@cordisjs/core/lib/index.cjs:900:12)
at MainScope.init (/koishi/node_modules/@cordisjs/core/lib/index.cjs:719:12)
at new MainScope (/koishi/node_modules/@cordisjs/core/lib/index.cjs:835:12)
at Proxy.plugin (/koishi/node_modules/@cordisjs/core/lib/index.cjs:1062:15)
at Proxy.forkPlugin (/koishi/node_modules/@koishijs/loader/lib/shared.js:279:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
根据论坛问题反馈板块帖子找到类似报错:
中作者表示该问题已解决,可以在更新中确认,但问题依然存在。冒昧打扰,请问是我下载的版本不对或是其他自身原因导致该报错?请问如何解决该报错?