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
TypeError: Cannot read property 'type' of undefined at AnotherOriginalClass.type #1545
Comments
Because you did neither provide any version information and detailed log messages, nor any reproduce steps, so I'm afraid that I can not be able to find the reason for this However, if you can use If you still want to use Have a nice day. |
my i just clone and : ( , the error stack as follows :
well , i use the the error is stil. // i change some code for the error stack
// contact-bot.js
async function onLogin (user) {
console.log(`${user} login`)
try {
await main()
} catch (e) {
console.log('>>>>>>>>>>>>>>>>>>>', e)
}
} |
Confirmed this is a bug related with |
does it occurs all versions or |
I'm not sure when this bug had been introduced in, but it should be fixed after v0.19.154. Please try again by check out the latest code from the wechaty-getting-started repo. |
well , when i run the it is in the project https://github.com/Chatie/wechaty-getting-started. 17:28:32 ERR PuppetPuppeteer roomRawPayload(********)
exception: no payload
(node:10140) UnhandledPromiseRejectionWarning: Error: no payload
at PuppetPuppeteer.<anonymous> (D:\wechaty-getting-started\node_modules\_wechaty@0.19.154@wechaty\node_modules\wechaty-puppet-puppeteer\dist\src\puppet-puppeteer.js:601:23)
at Generator.next (<anonymous>)
at fulfilled (D:\wechaty-getting-started\node_modules\_wechaty@0.19.154@wechaty\node_modules\wechaty-puppet-puppeteer\dist\src\puppet-puppeteer.js:22:58)
(node:10140) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10140) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. do i need reopen a issue for the problem above? |
Yes, please open an new issue and follow the template because it's a different problem. And also please close this issue if your problem was solved. Thanks you very much. |
TypeError: Cannot read property 'type' of undefined at AnotherOriginalClass.type (*******\node_modules\_wechaty@0.18.5@wechaty\dist\src\user\contact.js:381:29)
the example from-here .
when i use
contact.type()
, it happens. so i have to usepersonal()
orofficial()
instead.The text was updated successfully, but these errors were encountered: