Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

载入插件错误:miao-plugin顺带反馈一个bug #69

Closed
drpasserby opened this issue Jul 16, 2022 · 12 comments
Closed

载入插件错误:miao-plugin顺带反馈一个bug #69

drpasserby opened this issue Jul 16, 2022 · 12 comments

Comments

@drpasserby
Copy link

载入插件错误:miao-plugin
[YzBot][02:57:54.239][ERRO] Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'request' imported from /root/Yunzai-Bot/plugins/miao-plugin/components/Data.js
at new NodeError (node:internal/errors:387:5)
at packageResolve (node:internal/modules/esm/resolve:909:9)
at moduleResolve (node:internal/modules/esm/resolve:958:20)
at defaultResolve (node:internal/modules/esm/resolve:1173:11)
at nextResolve (node:internal/modules/esm/loader:173:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:852:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:439:18)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36)

——————————
bot更新了common,原路径“root/Yunzai-Bot/lib/common.js'”失效,现在应该是“root/Yunzai-Bot/lib/common/common.js”,报错的文件为“/root/Yunzai-Bot/plugins/miao-plugin/index.js”。

@drpasserby
Copy link
Author

貌似。。是3.0版本的bot和1.9.8的喵喵不兼容的情况。等作者更新了。

@repokx
Copy link

repokx commented Jul 19, 2022

同样的问题,我在手动更改index.js文件之后,还出现了新的问题:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'request' imported from D:\Documents\Github\Yunzai-Bot\plugins\miao-plugin\components\Data.js
    at new NodeError (node:internal/errors:372:5)
    at packageResolve (node:internal/modules/esm/resolve:954:9)
    at moduleResolve (node:internal/modules/esm/resolve:1003:20)
    at defaultResolve (node:internal/modules/esm/resolve:1218:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
    at link (node:internal/modules/esm/module_job:78:36)

芜湖,之前的问题还能明白是啥意思,这个直接不明白了,也许真的是3.0重构和1.9.8不兼容?我看到之前的群里有人用yunzai2.2是可以使用插件的,找一个先试试
插眼回复

@forevemoe
Copy link

forevemoe commented Jul 19, 2022

[ERRO]载入插件错误:miao-plugin
[ERRO] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/root/Yunzai-Bot/lib/common.js' imported from /root/Yunzai-Bot/plugins/miao-plugin/index.js
at new NodeError (node:internal/errors:372:5)
at finalizeResolution (node:internal/modules/esm/resolve:437:11)
at moduleResolve (node:internal/modules/esm/resolve:1009:10)
at defaultResolve (node:internal/modules/esm/resolve:1218:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
at link (node:internal/modules/esm/module_job:78:36)

3.0,嗯

@yoimiya-kokomi
Copy link
Owner

3.0开发中,miao-plugin暂未适配3.0版本
3.0涉及到整体底层的重构,需要重写的地方有不少,miao-plugin整体适配工作需要一定时间才能完成

可暂时使用2.2版本yunzai,或者等适配3.0之后再安装miao-plugin

@drpasserby
Copy link
Author

确实3.0的yunzai重构了很多东西,看了一遍连config.json都换成yaml格式了(作者有毅力!滋瓷!)(给我自己的话直接屎山代码凑合用)

@EternityXuNuo
Copy link

现在哪里能下到2.2版本XD

@repokx
Copy link

repokx commented Jul 23, 2022

现在哪里能下到2.2版本XD

你看这个作者(kokomi)的另一个repo,名字是yunzai-bot的那个repo就是2.2版本的
里面集成了miao-plugin,用法一样~

@200780381
Copy link

现在并没有任何渠道可以下载但是我可以把我的整合包发给你,因为作者已经把2.20版本撤回了

@drpasserby
Copy link
Author

使用git clone -b master https://github.com/Le-niao/Yunzai-Bot.git 可以下载2.1.8的版本

@yoimiya-kokomi
Copy link
Owner

miao-plugin1.9.0 已经初步适配3.0版本yunzai,基础功能可以正常使用

以及在3.0稳定之前也使用fork的yunzai 2.2版本安装
https://github.com/yoimiya-kokomi/Yunzai-Bot.git

@wooodswu
Copy link

现在并没有任何渠道可以下载但是我可以把我的整合包发给你,因为作者已经把2.20版本撤回了

求一个整合好的 1549732103@qq.com

@Xm798
Copy link

Xm798 commented Jul 27, 2022

现在并没有任何渠道可以下载

master 分支即为 2.1.8 版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants