Whenever I compile my project using the specified tsconfig.json
settings, an error occurs after enabling 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"
]
}
Despite not displaying any errors in VSCode itself.
In addition, the following vscode setting is configured:
"typescript.tsdk": "./node_modules/typescript/lib",
Everything functions correctly within VSCode except for the strictNullChecks error.