Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Using UpgradeModule in HMR mode results in multiple bootstraps #39935

Copy link
Copy link
Closed
@t0lya

Description

@t0lya
Issue body actions

🐞 bug report

Affected Package

@angular/upgrade

Is this a regression?

No, afaik.

Description

When using UpgradeModule.bootstrap() to run AngularJS/Angular apps in hybrid mode, changes to the app after starting the devserver using ng server --hmr result in this error:

Error: [ng:btstrpd] App already bootstrapped with this element

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-5qna3t?file=src/app/app.module.ajs.ts
Changing the template in the file above will throw an error in console.

🔥 Exception or Error

Error: [ng:btstrpd] App already bootstrapped with this element

🌍 Your Environment

Angular Version:

11.0.2

Anything else relevant?

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: upgradeIssues related to AngularJS → Angular upgrade APIsIssues related to AngularJS → Angular upgrade APIstype: bug/fix

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.