← All recipes
Moderne licensed

Add strictTemplates: false to tsconfig.json

Recipe IDorg.openrewrite.angular.migration.add-strict-templates-falseArtifact@openrewrite/recipes-angular

Adds "strictTemplates": false to angularCompilerOptions in tsconfig.json when the option is not set. Angular 22 turned strict template type checking on by default; setting it explicitly avoids new compilation errors.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.angular.migration.add-strict-templates-false

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular