Open dzfweb opened 7 years ago
set your tsconfig.json
to use es2016
libs.
having the same issue. Adding es6 to libs results in the following error:
node_modules/tns-core-modules/es-collections.d.ts(30,14): error TS2300: Duplicate identifier 'MapConstructor'.
node_modules/tns-core-modules/es-collections.d.ts(31,14): error TS2300: Duplicate identifier 'SetConstructor'.
node_modules/typescript/lib/lib.es2015.collection.d.ts(31,11): error TS2300: Duplicate identifier 'MapConstructor'.
node_modules/typescript/lib/lib.es2015.collection.d.ts(68,11): error TS2300: Duplicate identifier 'SetConstructor'.
node_modules/typescript/lib/lib.es2015.iterable.d.ts(118,11): error TS2300: Duplicate identifier 'MapConstructor'.
node_modules/typescript/lib/lib.es2015.iterable.d.ts(135,11): error TS2300: Duplicate identifier 'SetConstructor'.
my tsconfig is
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"noImplicitUseStrict": true,
"skipLibCheck": true,
"lib": [
"es2016"
]
},
"exclude": [
"node_modules",
"platforms",
"**/*.aot.ts"
]
}
Same issue as @m3l7...
@shiamalon tsconfig:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"lib": [
"es2016"
],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"removeComments": true,
"pretty": true
}
}
I'm with the folowing to run the application after instalation.
I've added the references.d.ts.