求puppeteer问题的解决方法····

开发模式也出现相同问题:
1.puppeteer本体提示“此插件将会提供 component:html 服务,但此服务已被其他插件实现。”


2.依赖puppeteer插件显示黄点且无法使用

3.重启koishi可以解决,但模块热替换会重新出错

Chrome版本 124.0.6367.158(正式版本) (64 位)

System:
OS: Windows 11 10.0.22631
CPU: (20) x64 13th Gen Intel(R) Core™ i9-13900H

Binaries:
Node: 20.12.1
Yarn: 4.1.1

Koishi:
Core: 4.17.6
Console: 5.28.4

3 个赞


77eb138e9c0625f47b294d5c50b05c7e
唔··· 主题上好像发了···
环境信息···
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core™ i7-8700 CPU @ 3.20GHz

Binaries:
Node: 20.3.1
Yarn: 4.0.1

Koishi:
Core: 4.17.5
Console: 5.28.4
Koishi Desktop: 1.0.0

2 个赞

诶? 你不是说··· 没复现出来问题嘛···?

2 个赞

今天给插件做新功能,用开发模式才出现的 :sob: :sob: :sob:

4 个赞

我没用开发者模式它也出现···

3 个赞

等修复咯,这种范围的出错基本不是个人的问题了 :partying_face:

4 个赞

好~ 谢谢大佬~

2 个赞

补段日志,希望有帮助

2024-05-18 07:38:45 [E] app Error: service component:html has been registered
                            at Object.set (/koishi/node_modules/@cordisjs/core/lib/index.cjs:944:13)
                            at Proxy.component (/koishi/node_modules/@satorijs/core/lib/index.cjs:641:21)
                            at Puppeteer.start (/koishi/node_modules/koishi-plugin-puppeteer/lib/index.js:60:18)
                            at runNextTicks (node:internal/process/task_queues:60:5)
                            at process.processImmediate (node:internal/timers:449:9)
                            at async /koishi/node_modules/@cordisjs/core/lib/index.cjs:1077:7
2 个赞