{
"compilerOptions": {
"noStrictGenericChecks": true,
"moduleResolution": "node",
"target": "es5",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipDefaultLibCheck": true,
"lib": ["es6", "dom"],
"types": ["node"]
},
"exclude": ["bin", "node_modules"],
"atom": {
"rewriteTsconfig": false
}
}
The noStrictGenericChecks
flag was introduced as part of TypeScript 2.4 . Make sure you have the latest TypeScript version.
You can update your TypeScript version using if you are using globally installed TypeScript for compilation:
npm install -g typescript
I have the same error and have typescript 2.4.0 installed.
npm list typescript
prints typescript@2.4.0
My tsconfig.json file:
{
"compilerOptions": {
"noStrictGenericChecks": true,
"module": "commonjs",
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"lib": [
"es6",
"dom",
"es2015.iterable"
],
"baseUrl": ".",
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
]
}
},
"exclude": [
"node_modules",
"platforms",
"**/*.aot.ts"
]
}
Not enough rep to comment... In the same boat - typescript is 2.4.2 but TypeScript for Microsoft Visual Studio is unable to update past 2.2.2:
screen cap of VS Extensions and Updates
I believe this is the source of our pain.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.