← All recipes
Moderne licensed

Find ModuleWithProviders without generic type

Recipe IDorg.openrewrite.angular.search.find-bare-module-with-providersArtifact@openrewrite/recipes-angular

Finds imports of ModuleWithProviders from @angular/core. Starting in Angular 10, ModuleWithProviders requires a generic type parameter (e.g. ModuleWithProviders<MyModule>). Ensure all usages specify the module type.

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-bare-module-with-providers

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

mod config recipes npm install @openrewrite/recipes-angular