Skip to content

Cannot load blazor in an angular app #40245

@MarioGit1

Description

@MarioGit1

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

We have a large angular app and for some parts of this app, we want to use blazor because we have a lot of code in c# and we want to use it in the browser.
For booting blazor we load the script '_framework/blazor.webassembly.js' with the attribute 'autostart'=false and after loading we call Blazor.start(). This scenario worked before netcore6.0.
We think the changes in the file 'BootConfig.ts' commit 0ca2ed9 breaks this way.
The comparison 'instanceof Promise' doesn't work, because zone.js patches the native promise.

Describe the solution you'd like

We know this isn't the standard way to use Blazor, but we cannot write the whole app in blazor so we have to use it in this way. Micro-Frontends are very popular, so it should be possible to use different frameworks for one app. If we patch this comparison everything works fine. Maybe there is common solution for this problem.

Additional context

No response

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions