How to get VSCode to show me strict NullChecks Typescript errors
When I build my project with the following tsconfig.json
I get an error due to a recent addition strictNullChecks: true
.
{
"version": "2.3.4",
"compilerOptions": {
"allowSyntheticDefaultImports": false,
"removeComments": true,
"strictNullChecks": true,
"sourceMap": true,
"jsx": "react",
"target": "es5",
"lib": [
"es6",
"dom",
"scripthost"
],
"outDir": "../build/"
},
"include": [
"./*.ts",
"./*.tsx",
"./{client,mobile,server,shared,test,tools}/*.ts",
"./{client,mobile,server,shared,test,tools}/*.tsx",
"./{client,mobile,server,shared,test,tools}/**/*.ts",
"./{client,mobile,server,shared,test,tools}/**/*.tsx",
"./desktop/*.ts"
]
}
However, I don't see any errors in VSCode.
I also have the following vscode parameter:
"typescript.tsdk": "./node_modules/typescript/lib",
Everything seems to work fine in VSCode except for strictNullChecks errors.
+3
source to share
No one has answered this question yet
Check out similar questions: