-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Error: Cannot find module 'babel-plugin-transform-runtime' from '/bot' #1536
Comments
Can you try the latest version of v0.19.142 by runing I had just tried and it works without any problem.
|
thanks a lot, the problem above has been fixed after update babel and wechaty. But another issue appeared, could you help me to take a look? WECHATY Environment Variables: 1 Starting Docker Container for Wechaty v0.19.151 with Node.js v10.8.0 ... Error: Plugin/Preset files are not allowed to export objects, only functions. In /bot/node_modules/babel-preset-es2015/lib/index.js | __ )| | | |/ | | _ | | _ \ / _ | _ _ | Press ENTER to continue ... 1. source code of tuling.jsconst qrTerm = require('qrcode-terminal') const { const welcome = ` I can talk with you using Tuling123.com Please wait... I'm trying to login in... console.log(welcome) /**
*/ const bot = new Wechaty() bot.on('scan', onScan) bot.start() function onScan (qrcode, status) { function onLogin (user) { function onLogout (user) { function onError (e) { async function onMessage (msg) { console.log('Bot', 'talk: %s' , msg.text()) try { 3. package.jsoncat: /bot/package.json: No such file or directory 4. directory structor inside /bot/node_modulesansi-regex babel-plugin-transform-es2015-shorthand-properties inherits 5. wechaty doctorWechaty Doctor
|
If you are using docker, then you should install neither Wechaty nor Babel because they should be load from docker image. Try to remove them in your local node_modules directory and try again. |
It seems we need another getting started for docker users. Will make one later. |
@csea007 Can you try our new Docker Getting Started Template at https://github.com/Chatie/docker-wechaty-getting-started? It should be able to run out-of-the-box. Please feel free to let me know if it can solve your problem, thanks. |
Hi zixia, |
Glad to hear that, have a nice day! |
Provide Your Network Information
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output here**when running "docker run -ti --rm --volume="$(pwd)":/bot zixia/wechaty tuling.js'
report the following error, who can help me? thanks in advance**
The text was updated successfully, but these errors were encountered: