Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
88
rated 0 times [  94] [ 6]  / answers: 1 / hits: 56424  / 5 Years ago, tue, august 20, 2019, 12:00:00

I'm running into this issue and I'd like to turn off strict mode to get around it.



I've modified tsconfig.json with:



compilerOptions: {
strict: false,


And also tried:



 compilerOptions: {
noImplicitUseStrict: true,


But no love. Thoughts?


More From » node.js

 Answers
5

Following Angular doc, the strict mode can be disabled turning off these flags on tsconfig.json file:


   "forceConsistentCasingInFileNames": false,
"strict": false,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,
...
"angularCompilerOptions": {
"strictInjectionParameters": false,
"strictInputAccessModifiers": false,
"strictTemplates": false
}

[#51751] Monday, August 12, 2019, 5 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jamila

Total Points: 490
Total Questions: 94
Total Answers: 94

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;