Skip to content

Universal schematics add double added withServerTransition #24563

Closed
@Zuluseq

Description

@Zuluseq

What modules are relevant for this feature request?

  • builders
  • common
  • express-engine

Description

When restarting xxx, when some entries were already entered in the configuration files - in the case of app.modules.ts, the CLI detects the BrowserModule and adds .withServerTransition({ appId: 'serverApp' })
It doesn't check if it was there before and as a result it is created
BrowserModule.withServerTransition({ appId: 'serverApp' }).withServerTransition({ appId: 'serverApp' }),

🔬 Minimal Reproduction

Angular 15 prepare SSR on existing app

I took over the code from another developer who was trying to add manually. CLI Add corrected all changes correctly except this one.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions