Forum Discussion

Auri_Rahimzadeh's avatar
Auri_Rahimzadeh
Copper Contributor
Jan 17, 2025
Solved

Module object available in .NET 6 Blazor WASM Project, but not in .NET 8+ After Upgrade

I have a working project in .NET 6 that calls the following JS code: export function synchronizeFileWithIndexedDb(filename) { return new Promise((res, rej) => { const db = window.indexe...
  • Auri_Rahimzadeh's avatar
    Jan 18, 2025

    AHH, finally found the solution. Breaking change in .NET 9 (though I had the same issue in .NET 8). 

    https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/9.0/legacy-apis

    Module can be changed to Blazor.runtime to solve.

Resources