Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Line 2: Unexpected token #9

Open
JakobJingleheimer opened this issue Jul 5, 2018 · 3 comments
Open

Error: Line 2: Unexpected token #9

JakobJingleheimer opened this issue Jul 5, 2018 · 3 comments

Comments

@JakobJingleheimer
Copy link

The line cited is

import _camelCase from '@lodash/camelCase';

I'm not seeing any invalid syntax there, and there is no other information (besides a stacktrace within tspath).

@duffman
Copy link
Owner

duffman commented Sep 12, 2018

Well, provide your tsconfig.json, your project structure and the actual stacktrace!

@pawelotto
Copy link

I've been dealing with the same issue, I've been getting syntax errors every time I wanted to compile into es6. Simply change to "target": "es5" and you should compile without problems.

@osdiab
Copy link

osdiab commented May 24, 2019

Oh, so does this project not support ES6 modules then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants