news 插件报错,没有定时发送

报错日志

2023-11-13 16:33:03 [I] loader apply plugin news:zt9iet
2023-11-13 16:33:03 [W] app Error: property __cron__ is not registered, declare it as `inject` to suppress this warning
                            at checkInject (/koishi/node_modules/cordis/lib/index.cjs:784:36)
                            at Object.get (/koishi/node_modules/cordis/lib/index.cjs:801:9)
                            at Object.get (/koishi/node_modules/cordis/lib/index.cjs:792:26)
                            at Object.apply (/koishi/node_modules/koishi-plugin-news/lib/index.js:17:9)
                            at _MainScope.apply (/koishi/node_modules/cordis/lib/index.cjs:491:26)
                            at /koishi/node_modules/cordis/lib/index.cjs:515:36
                            at _MainScope.ensure (/koishi/node_modules/cordis/lib/index.cjs:272:18)
                            at _MainScope.start (/koishi/node_modules/cordis/lib/index.cjs:515:12)
                            at _MainScope.init (/koishi/node_modules/cordis/lib/index.cjs:317:12)
                            at new MainScope (/koishi/node_modules/cordis/lib/index.cjs:443:12)

系统信息

System:
    OS: Linux 4.19 Alpine Linux
    CPU: (4) arm64 Cortex-A55

Binaries:
    Node: 18.17.1
    Yarn: 3.6.2

Koishi:
    Core: 4.15.4
    Console: 5.18.1
2 个赞

非 Koishi 问题请发「互助」版块,不要发问题反馈。我已帮你修改。

3 个赞

应该先去 github 找 issue 的

3 个赞