-
Notifications
You must be signed in to change notification settings - Fork 352
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
ERR StarterBot TypeError: The "listener" argument must be of type function. Received undefined #227
Comments
The PadLocal currently (v0.4) has not been adapted to Wechaty v1.x API yet. Please use Wechaty v0.x branch at https://github.com/wechaty/getting-started/blob/v0.x/package.json Link to: |
I have the following npm packages installed, but still have the same error: Output from npm list [email protected] /root/gitrepo/wechaty-puppet-padlocal-demo |
Workaround: use
|
和题主相同错误: ERR StarterBot TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received undefined package.json文件内容如下: Bot,js内容如下: //扫码
} //登录
} //登出 //信息
} const bot = new Wechaty({
}) bot.on('scan', onScan) //设置群聊邀请
}) //有人加入群聊 room 群聊 inviteeList 所有人 inviter 邀请者
}) // 创建微信定时任务
} bot.start() |
Workaround: use
|
According to "黑白毒师" from the group chat. I verified locally, it is working now. |
to follow up on this: does PadLocal support Wechaty 1.X now? |
It does. There was an update earlier this month. |
I just tried with the "Getting started" repo, and it still says:
|
Today, I ran the demo
wechaty-getting-started
with the default configuration, it was successfulBut when I ran the demo with the latest versions of
[email protected]
and[email protected]
there is a bug report
The text was updated successfully, but these errors were encountered: