Open HERRKIN opened 8 years ago
I installed babel in node v6 (never tried it before) I typed babel app.js just copy paste and editing the tokens of your example. it throws this error.
SyntaxError: app.js: Unexpected token (5:24) 3 | const bot = new Bot(mytoken, myvertoken); 4 | > 5 | bot.on('message', async message => { | ^ 6 | const {sender} = message; 7 | await sender.fetch('first_name'); 8 |
You need to include the babel dependencies in package.json and the .babelrc file into your project, that works for me! 😅
I installed babel in node v6 (never tried it before) I typed babel app.js just copy paste and editing the tokens of your example. it throws this error.