Skip to content

[browser][coreCLR] JS initializer hooks (onRuntimeConfigLoaded/onRuntimeReady) not working under CoreCLR WASM runtime #127514

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. This causes multiple test failures in aspnetcore E2E tests.

Affected tests:

  • WebAssemblyLazyLoadTest (3 tests) - lazy-loaded assemblies don't resolve
  • EnvironmentBoundaryTest (3 tests) - environment string is empty
  • WebAssemblyLoggingTest (4 tests) - custom logger messages absent from console
  • WebAssemblyConfigurationTest (2 tests) - configuration values not loaded
  • JsInitializersTest (1 test) - initializer content element not created

Browser warnings observed:
DOTNET: Module '../BasicTestApp.lib.module.js' does not export 'onRuntimeConfigLoaded' function.
DOTNET: Module '../BasicTestApp.lib.module.js' does not export 'onRuntimeReady' function.

Discovered in aspnetcore PR dotnet/aspnetcore#66331

Activity

  1. self-assigned this
    on Apr 28, 2026
  2. added
    untriaged
    on Apr 28, 2026
  3. removed
    untriaged
    on Apr 29, 2026
  4. locked and limited conversation to collaborators on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-AssemblyLoader-coreclr

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions