Add strictTemplates: false to tsconfig.json
Recipe ID
org.openrewrite.angular.migration.add-strict-templates-falseArtifact@openrewrite/recipes-angularAdds "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-falseIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular