tspath
tspath copied to clipboard
Error: Line 2: Unexpected token
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).
Well, provide your tsconfig.json, your project structure and the actual stacktrace!
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.
Oh, so does this project not support ES6 modules then?