← All recipes
Moderne licensed

Mark imports of removed PrimeNG modules with TODO stubs

Recipe IDorg.openrewrite.primeng.MarkRemovedPrimengModulesArtifact@openrewrite/recipes-angular

For each import of a PrimeNG module that no longer exists in v18 (primeng/chips, primeng/tristatecheckbox, primeng/messages, primeng/dataviewlayoutoptions), replaces the broken import statement with a const <Name>: any = null; stub annotated by a TODO comment that describes the v18 replacement. Also strips the corresponding entries from @NgModule imports, declarations, and exports arrays since Angular's compiler rejects null values there. Each flagged site is also recorded in the ManualMigrationSteps data table so downstream tooling can enumerate the remaining work.

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.primeng.MarkRemovedPrimengModules

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

mod config recipes npm install @openrewrite/recipes-angular