Uncaught SyntaxError: Unexpected token import

I’m using Meteor 1.4.2.3 and just started to use the ES6 ‘import’ function to pull in scripts from my /imports folder.

When I call the following line at the top of functioning JS file…

import '../../imports/trello.js';

…I get the error: “Uncaught SyntaxError: Unexpected token import

Any idea why?

Do you have the ecmascript package added to your project?

meteor add ecmascript

Ah, I thought later versions of meteor came with that by default.

Thank you!