Babel-eslint: Unexpected token error with dynamic import()

Created on 20 Jun 2017  路  3Comments  路  Source: babel/babel-eslint

I'm unable to get eslint to parse ES2015 dynamic import()s. I've searched for solutions, and everyone points to this library as a solution, but it doesn't work for me.

I created a minimal example at https://github.com/thallada/babel-eslint-dynamic-import which has more details.

question

Most helpful comment

Ah, that was the problem. The latest version works.

I followed the README which told me to run:

npm install [email protected] babel-eslint@6 --save-dev

Shouldn't that be this now?

npm install [email protected] babel-eslint@7 --save-dev

All 3 comments

Are you on the latest version? 7.2.3 is the current latest

Ah, that was the problem. The latest version works.

I followed the README which told me to run:

npm install [email protected] babel-eslint@6 --save-dev

Shouldn't that be this now?

npm install [email protected] babel-eslint@7 --save-dev

yeah I guess it's not updated - can you make a PR?

Was this page helpful?
0 / 5 - 0 ratings