Sitelet https://github.com/angular/angular/issues/39755
Skip to content

Invalid preserveQueryParams migration with v11聽#39755

Description

@QuentinFchx

馃悶 bug report

Affected Package

The issue is caused by package @angular/core (schematics)

Is this a regression?

No

Description

When updating from v10 to v11, the "router-preserve-query-params" migration is executed.

This migration replaces uses of preserveQueryParams by queryParamsHandler, while it should be queryParamsHandling.
The issue was introduced in #38762
Issue is located here

ts.createPropertyAssignment('queryParamsHandler', ts.createIdentifier(`'preserve'`))));

馃敩 Minimal Reproduction

Not applicable

馃敟 Exception or Error

Not applicable

馃實 Your Environment

Angular Version:


Angular CLI: 11.0.2
Node: 14.12.0
OS: darwin x64

Angular: 11.0.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1100.2
@angular-devkit/build-angular      0.1100.2
@angular-devkit/core               11.0.2
@angular-devkit/schematics         11.0.2
@angular/cdk                       10.2.7
@angular/cli                       11.0.2
@angular/material                  10.2.7
@angular/material-moment-adapter   10.2.7
@schematics/angular                11.0.2
@schematics/update                 0.1100.2
rxjs                               6.5.5
typescript                         4.0.5

Anything else relevant?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: migrationsIssues related to `ng update`/`ng generate` migrationsarea: routerstate: has PR

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions