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
Comments
貌似。。是3.0版本的bot和1.9.8的喵喵不兼容的情况。等作者更新了。 |
同样的问题,我在手动更改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是可以使用插件的,找一个先试试 |
3.0,嗯 |
3.0开发中,miao-plugin暂未适配3.0版本 可暂时使用2.2版本yunzai,或者等适配3.0之后再安装miao-plugin |
确实3.0的yunzai重构了很多东西,看了一遍连config.json都换成yaml格式了(作者有毅力!滋瓷!)(给我自己的话直接屎山代码凑合用) |
现在哪里能下到2.2版本XD |
你看这个作者(kokomi)的另一个repo,名字是yunzai-bot的那个repo就是2.2版本的 |
现在并没有任何渠道可以下载但是我可以把我的整合包发给你,因为作者已经把2.20版本撤回了 |
使用git clone -b master https://github.com/Le-niao/Yunzai-Bot.git 可以下载2.1.8的版本 |
miao-plugin1.9.0 已经初步适配3.0版本yunzai,基础功能可以正常使用 以及在3.0稳定之前也使用fork的yunzai 2.2版本安装 |
求一个整合好的 1549732103@qq.com |
master 分支即为 2.1.8 版本。 |
载入插件错误: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”。
The text was updated successfully, but these errors were encountered: