Walkersifolia / PhigrosLibrary-plugin

基于Yunzai-Bot v3的PhigrosLibrary-Plugin,可以查询Phigros B19并生成成绩图,以及一些其他的娱乐功能
27 stars 3 forks source link

这是什么报错 #6

Closed S-t-e-v-e-e closed 1 year ago

S-t-e-v-e-e commented 1 year ago

image 如图

Walkersifolia commented 1 year ago

没有安装puppeteer,在yunzai根目录执行npm install puppeteer,但是不对啊,好多插件都要用到puppeteer

S-t-e-v-e-e commented 1 year ago

image 是这个吗

Walkersifolia commented 1 year ago

S-t-e-v-e-e commented 1 year ago

但是只有这个插件出错了

Walkersifolia commented 1 year ago

哦,你这个是喵崽啊,我没用过,检查bot根目录下,./lib/puppeteer/puppeteer.js是否存在,我是用绝对路径import的,然后看看其他插件的puppeteer的import是在哪个目录 image

S-t-e-v-e-e commented 1 year ago

image

Walkersifolia commented 1 year ago

image

那不对呀,不应该有问题呀

S-t-e-v-e-e commented 1 year ago

image 🤔

S-t-e-v-e-e commented 1 year ago

某插件的

Walkersifolia commented 1 year ago

node模块的puppeteer和lib里面的代码写法不太一样,我有空搭一个喵崽看一下吧,云崽插件无法完全兼容喵崽是很正常的

S-t-e-v-e-e commented 1 year ago

image 貌似不太支持直接调用puppteer.js了

Walkersifolia commented 1 year ago

离谱,我总不能为了喵崽兼容内置puppeteer,那样冗杂程度就太离谱了

S-t-e-v-e-e commented 1 year ago

image 或许可以试试这个?

Walkersifolia commented 1 year ago

node模块的puppeteer和lib里面的代码写法不太一样,我有空搭一个喵崽看一下吧,云崽插件无法完全兼容喵崽是很正常的

和我刚刚说的一样,node模块的puppeteer不支持我所需的功能,虽然都叫puppeteer

S-t-e-v-e-e commented 1 year ago