Skip to content

[browser][coreCLR] JS initializer hooks not working under CoreCLR WASM runtime #127515

Closed

Description

@pavelsavara

When running Blazor WebAssembly E2E tests with UseMonoRuntime=false (CoreCLR WASM), the JS module initializer lifecycle hooks onRuntimeConfigLoaded and onRuntimeReady are not being exported/recognized by the runtime.

Affected tests:

  • WebAssemblyLazyLoadTest (3 tests)
  • EnvironmentBoundaryTest (3 tests)
  • WebAssemblyLoggingTest (4 tests)
  • WebAssemblyConfigurationTest (2 tests)
  • JsInitializersTest (1 test)

Browser warnings:

DOTNET: Module 'BasicTestApp.lib.module.js' does not export 'onRuntimeConfigLoaded' function.
DOTNET: Module 'BasicTestApp.lib.module.js' does not export 'onRuntimeReady' function.

https://github.com/dotnet/aspnetcore/blob/769d69bcf47ebe636e8c4364b57db4ec5b97a45b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWasmServiceDefaults-CSharp/wwwroot/BlazorWasm.ServiceDefaults1.lib.module.js#L4

Discovered in aspnetcore PR dotnet/aspnetcore#66331

Activity

  1. self-assigned this
    on Apr 28, 2026
  2. added
    untriaged
    on Apr 28, 2026
  3. added this to the 11.0.0 milestone on Apr 28, 2026
  4. added
    arch-wasm
    os-browser
    on Apr 28, 2026
  5. removed
    area-AssemblyLoader-coreclr
    untriaged
    on Apr 28, 2026
  6. dotnet-policy-service commented on Apr 28, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
    See info in area-owners.md if you want to be subscribed.

  7. MattParkerDev commented on Apr 29, 2026

    @MattParkerDev

    duplicate of #127514?

  8. locked and limited conversation to collaborators on Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Hostos-browser

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions