Try adding this line to your ts configuration:
"parserOptions": { "ecmaVersion": 6, "sourceType": "module" },
If this does not work, try with this config that works on my computer ( tsconfig.json ):
{ "compilerOptions": { "noImplicitAny": true, "module": "commonjs", "target": "ES5", "emitDecoratorMetadata": true, "experimentalDecorators": true, "sourceMap": true, "declaration": true, "moduleResolution":"node" }, "files": [ "angular2-jwt.ts", "typings/browser.d.ts", "custom.d.ts" ] }
Sunitrams'
source share