Remove BrowserModule.withServerTransition
Recipe ID
org.openrewrite.angular.migration.remove-browser-module-with-server-transitionArtifact@openrewrite/recipes-angularReplaces BrowserModule.withServerTransition({ appId: '...' }) with BrowserModule and adds { provide: APP_ID, useValue: '...' } to the NgModule providers. The withServerTransition method was removed in Angular 19.
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.remove-browser-module-with-server-transitionIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular