Unexpected token 'import' #1

Closed
opened 2015-06-27 20:20:01 +00:00 by christophetd · 4 comments
christophetd commented 2015-06-27 20:20:01 +00:00 (Migrated from github.com)

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!

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!
mdibaiee commented 2015-06-28 01:06:08 +00:00 (Migrated from github.com)

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.

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.
mdibaiee commented 2015-06-28 22:45:29 +00:00 (Migrated from github.com)

see the new update.

see the new update.
Hunter-Github commented 2015-06-30 03:51:13 +00:00 (Migrated from github.com)

The requirement isn't stated clearly in the docs, it has to be on the main README.md

The requirement isn't stated clearly in the docs, it has to be on the main README.md
mdibaiee commented 2015-06-30 22:49:16 +00:00 (Migrated from github.com)

@Hunter-Github This is a common task, anyways, added it to README.

@Hunter-Github This is a common task, anyways, added it to README.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thereadme/node-telegram-api#1
No description provided.