Sunday 31 January 2016

Can't use ES6 modules in Node v5 ?

I'm working on node app (with node v5.4 installed) and can't use ES6 modules.I have the following error when I run my app:import express from 'express'; ^^^^^^ SyntaxError: Unexpected token import What's wrong ? I thought that Node v4+ supports most ES6 features (well, at least ES6 modules since they are very popular and useful)

Submitted January 31, 2016 at 06:54PM by skini26

No comments:

Post a Comment