Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.Module.FS and IDBFS no longer works in .NET 9 #109810

Open
peerem opened this issue Nov 14, 2024 · 5 comments
Open

window.Module.FS and IDBFS no longer works in .NET 9 #109810

peerem opened this issue Nov 14, 2024 · 5 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm
Milestone

Comments

@peerem
Copy link

peerem commented Nov 14, 2024

Description

It no longer works since .NET 9. We always had this switch in the project in .NET 8. Has it been changed again?

<EmccExtraLDFlags>-lidbfs.js</EmccExtraLDFlags>

We get now following error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'FS')

window.Module.FS.syncfs(async t => { ... }

If we downgrade to .NET 8 it works again fine.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 14, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 14, 2024
@MichalStrehovsky MichalStrehovsky added the arch-wasm WebAssembly architecture label Nov 14, 2024
Copy link
Contributor

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

@Yu-Core
Copy link

Yu-Core commented Nov 14, 2024

I find Blazor.runtime.Module.FS
It can work on my application

@vcsjones vcsjones added area-System.Runtime.InteropServices.JavaScript and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 14, 2024
@maraf maraf self-assigned this Nov 14, 2024
@maraf maraf added os-browser Browser variant of arch-wasm and removed untriaged New issue has not been triaged by the area owner labels Nov 14, 2024
@maraf maraf added this to the 9.0.0 milestone Nov 14, 2024
@maraf
Copy link
Member

maraf commented Nov 14, 2024

The change was introduced in dotnet/aspnetcore#52732. A way forward is to use Blazor.runtime.

@peerem
Copy link
Author

peerem commented Nov 14, 2024

I find Blazor.runtime.Module.FS It can work on my application

This works fine.

@peerem
Copy link
Author

peerem commented Nov 14, 2024

The change was introduced in dotnet/aspnetcore#52732. A way forward is to use Blazor.runtime.

Unfortunately, I couldn't find any further documentation on this. But it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

5 participants