Does anyone have a working example of the quickstart tutorial (https://angular.io/docs/ts/latest/cookbook/visual-studio-2015.html) using ES6? Basically, I want to do this:
typings.config (emphasis on es6):
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
}
}
When I do this and compile, I get duplicate declaration errors in core-js like this:
<path>\typings\globals\core-js\index.d.ts(3,14): error TS2300: Build:Duplicate identifier 'PropertyKey'.
If I remove core-js, I can get it to compile, but it won't work in IE11 (works in Edge, FF and Chrome). If I change it to es5, it works in IE11 as well. I am using the latest version of TypeScript (2.0)
Can someone explain what I am doing wrong? Thanks in advance.