koishijs / koishi-plugin-booru

Image service for Koishi | 最好的涩图插件!
https://booru.koishi.chat
MIT License
12 stars 8 forks source link

Bug: property booru is not registered, declare it as `inject` to suppress this warning #129

Closed idranme closed 11 months ago

idranme commented 11 months ago

Describe the bug

image

Steps to reproduce

发送指令: booru -c 2

Expected behavior

消除警告

Screenshots

No response

Relevant log output

No response

Launcher

Koishi CLI (koishi start)

Sources

Lolicon

Versions

Additional context

No response

Lipraty commented 11 months ago

What version of booru are you using? The inject was used in the very early on to eradicate this. And the change was released as version 1.1.0.

For more information, look this: https://github.com/koishijs/koishi-plugin-booru/blob/56168e9f22e5ebbf05f276f55e81ce00b0094d37/packages/core/src/index.tsx#L172-L175

You can also check out the commit: https://github.com/koishijs/koishi-plugin-booru/pull/106/commits/ec8e526c32884a1ebbead5f8a166731c2a63fea0 And Issue: https://github.com/koishijs/koishi-plugin-booru/issues/104

Therefore, you need to upgrade to the latest version of booru.

idranme commented 11 months ago

What version of booru are you using? The inject was used in the very early on to eradicate this. And the change was released as version 1.1.0.

For more information, look this: https://github.com/koishijs/koishi-plugin-booru/blob/56168e9f22e5ebbf05f276f55e81ce00b0094d37/packages/core/src/index.tsx#L172-L175

You can also check out the commit: https://github.com/koishijs/koishi-plugin-booru/pull/106/commits/ec8e526c32884a1ebbead5f8a166731c2a63fea0 And Issue: https://github.com/koishijs/koishi-plugin-booru/issues/104

Therefore, you need to upgrade to the latest version of booru.

Version 1.1.2

Lipraty commented 11 months ago

check your dependencies or lockfile.

idranme commented 11 months ago

check your dependencies or lockfile.

image

Lipraty commented 11 months ago

example:

yarn why koishi-plugin-booru
idranme commented 11 months ago

example:

yarn why koishi-plugin-booru

image

Kesunorin commented 11 months ago

我也是这个问题,请问有解决方案吗?

MaikoTan commented 11 months ago

Is it resolved when you updated the booru plugin?

Kesunorin commented 11 months ago

我的情况也是和本issue一样的,Version 1.1.2,我使用yarn why koishi-plugin-booru查看确认过。 My situation is the same as this issue koishi-plugin-booru Version: 1.1.2 I used yarn why koishi-plugin-booru to check Version OS: Debian 12 (Termux Proot-distro) Adapter: OneBot Node version: 20.10.0 Koishi version: 4.16.0 Sources Lolicon

MaikoTan commented 11 months ago

Well, we have just released the v1.1.3...

Kesunorin commented 11 months ago

对不起,我不知道这插件已经更新 Sorry, I didn't know that the plugin had been updated 现在已经解决了,谢谢! and It has been resolved now,THNAKS!