Find provideRoutes usage
Recipe ID
org.openrewrite.angular.search.find-provide-routes-usageArtifact@openrewrite/recipes-angularFinds imports of provideRoutes from @angular/router, which was removed in Angular 22. Use provideRouter(), or provide the ROUTES multi token directly.
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.search.find-provide-routes-usageIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular