Tuesday 6 June 2017

Export & Import syntax error with node =>4.6.x [duplicate]

This question already has an answer here:

Node supports ES6 from node v4.6 upwards, if i'm not mistaken. Creating ES6 modules works fine until I need to import and export these modules, I then get the following error(s):

export class Helper {
^^^^^^
SyntaxError: Unexpected token export

I feel like I'm missing something.



via dieheld

No comments:

Post a Comment