Unexpected token 'import' #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: thereadme/node-telegram-api#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I can't get the module working because of the (I'm guessing) use of ES6 features in your code. What I get when I run my code is an error unexpected token import in index.js:1. I have updated my version of node (now 0.12.5 running on windows 7 64 bits) and I'm using the --harmony flag.
Do you have any insights?
Thanks!
I'm currently using babel require hook to transpile my code, this will change, a new version is coming with a better API and I will provide transpiled files so you don't have to install babel.
For now, run
npm install
in the repository root.see the new update.
The requirement isn't stated clearly in the docs, it has to be on the main README.md
@Hunter-Github This is a common task, anyways, added it to README.