← All recipes
Moderne licensed

Remove BrowserModule.withServerTransition

Recipe IDorg.openrewrite.angular.migration.remove-browser-module-with-server-transitionArtifact@openrewrite/recipes-angular

Replaces 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-transition

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

mod config recipes npm install @openrewrite/recipes-angular