Skip to content
Advertisement

Turning off Strict Mode in Angular?

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?

Advertisement

Answer

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
   }
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement