Comments (3)
can not understand. please try the latest code.
if issue still there, I need u to provide the detail.
from wechaty.
please feel free to re-open this issue if you can provide Steps to reproduce the behavior. thanks.
from wechaty.
@#### Wechaty Doctor
- Wechaty version: #git[cd7c7dd log for #55]
- Darwin x64 version 15.6.0 memory 38/4096 MB
- Docker: false
when I try to get the topic of msgRoom as follows
.on('message', m => {
m.ready()
.then(msg => {
const msgRoom = m.room()
const msgRoomTopic = msgRoom.topic()
console.log(msgRoomTopic)
....
then, I can't run wechaty, error log as follows:
lijiaruideMacBook-Air:orangiss lijiarui$ WCHATY_LOG=silly npm run ts-node orangiss/juzimi.ts
[email protected] ts-node /Users/lijiarui/git/wechaty
ts-node "orangiss/juzimi.ts"/Users/lijiarui/git/wechaty/node_modules/ts-node/src/index.ts:308
throw new TSError(diagnosticList)
^
TSError: ⨯ Unable to compile TypeScript
orangiss/juzimi.ts (204,26): Object is possibly 'null'. (2531)
orangiss/juzimi.ts: Emit skipped
at getOutput (/Users/lijiarui/git/wechaty/node_modules/ts-node/src/index.ts:308:17)
at /Users/lijiarui/git/wechaty/node_modules/ts-node/src/index.ts:334:18
at Object.compile (/Users/lijiarui/git/wechaty/node_modules/ts-node/src/index.ts:488:17)
at Module.m._compile (/Users/lijiarui/git/wechaty/node_modules/ts-node/src/index.ts:392:44)
at Module._extensions..js (module.js:550:10)
at Object.require.extensions.(anonymous function) as .ts
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ts-node" "orangiss/juzimi.ts"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] ts-node:ts-node "orangiss/juzimi.ts"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] ts-node script 'ts-node "orangiss/juzimi.ts"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the wechaty package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ts-node "orangiss/juzimi.ts"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs wechaty
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls wechaty
npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:
npm ERR! /Users/lijiarui/git/wechaty/orangiss/npm-debug.log
then, I change the code as follows:
.on('message', m => {
m.ready()
.then(msg => {
const msgRoom = m.room()
const msgRoomTopic = (msgRoom as any).topic()
console.log(msgRoomTopic)
....
all works well!
from wechaty.
Related Issues (20)
- 我试图在房间中say消息有时候会报错,导致项目停止运行 HOT 3
- 重新扫码padlocal两三天了还没有人修复嘛,wechat bad request error: 你的应用版本过低,请升级至最新版本后再登录。点击“确定”后将跳转至最新版下载页面,登录不了咯, HOT 4
- 关于如何将ding-dong-bot.ts文件改成满足企业微信的demo HOT 7
- 企业微信遇到的问题 HOT 4
- 重新扫码padlocal两三天了还没有人修复嘛,wechat bad request error: 你的应用版本过低,请升级至最新版本后再登录。点击“确定”后将跳转至最新版下载页面,登录不了咯, HOT 7
- 我想监听群聊中其他人进入群聊的事件,是否有提供呢 HOT 5
- 为什么使用bot.Contact.findAll()方法查找到的联系人名称都是空呢 HOT 8
- 你的应用版本过低,请升级至最新版本后再登录。点击“确定”后将跳转至 最新版下载页面,依赖都是最新版的这个怎么解决呢 HOT 2
- 你的应用版本过低,请升级至最新版本后再登录。点击“确定”后将跳转至 最新版下载页面,依赖都是最新版的这个怎么解决呢? HOT 2
- 告诉我现在个人微信可以支持发送语音的所有puppet HOT 2
- Workpro 企业微信小程序消息发送失败
- 如何识别 引用 类型的消息,目前用text获取不到 HOT 2
- 【wechaty问题交流微信群】一起讨论,吐槽,解决wechaty中遇到的坑 HOT 1
- contact.friend() HOT 1
- 什么时候可以支持消息的引用啊
- updating README
- PadLocal是不是带着小姨子跑路了 HOT 1
- 短时间多次调用room.say发送图片,发送间隔很长 HOT 5
- 你的应用版本过低,请升级击“确定”后将跳转至最新版下载页面。 HOT 2
- wechaty版本1.18+怎么获取用户唯一标识? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechaty.