chatrbot / wechaty-puppet-simplepad

Another implementation of Wechaty-Puppet
Apache License 2.0
33 stars 6 forks source link

不能将类型“PuppetSimplePad”分配给类型“Puppet” #3

Closed forconz closed 3 years ago

forconz commented 3 years ago
const puppet = new PuppetSimplePad({ token })
const bot = new Wechaty({ puppet })

不能将类型“PuppetSimplePad”分配给类型“"wechaty-puppet-hostie" | "wechaty-puppet-puppeteer" | "wechaty-puppet-service" | "wechaty-puppet-mock" | "wechaty-puppet-wechat" | "wechaty-puppet-wechat4u" | "wechaty-puppet-padlocal" | ... 7 more ... | undefined”。 不能将类型“PuppetSimplePad”分配给类型“Puppet”。 属性“options”受保护,但类型“Puppet”并不是从“Puppet”派生的类。ts(2322)

forconz commented 3 years ago

PS E:\Test\wechaty-puppet-simplepad-demo> node -v v16.9.0

forconz commented 3 years ago

这个问题不解决,没办法付费买token啊

chatrbot commented 3 years ago

@forconz 麻烦你贴一下package.json的配置,并且尝试重新安装node_modules 我测试下来"wechaty": "^0.68.1"(当前最新的wechaty版本)没有问题

forconz commented 3 years ago

@chatrbot 我用的demo自带的package.json,没有改动,直接npm i

chatrbot commented 3 years ago

@forconz 请尝试重新pull一次demo代码并且重新npm install

forconz commented 3 years ago

重新pull了demo,就好了