runtime icon indicating copy to clipboard operation
runtime copied to clipboard

window.Module.FS.filesystems does not have IDBFS anymore in dotnet >8.0.3

Open msd-kharazi opened this issue 2 years ago • 1 comments

          The Net7 runtime is not spilling the emscripten guts into JS global namespace anymore.

In your code https://github.com/sajjadarashhh/Test.net7/blob/f8280d225d1f4e549c129fc94cfa8b101ce9763a/MultipleEventHandlers/MultipleEventHandlers/wwwroot/file.js#L3-L4

The IDBFS is not global anymore. Please try to replace it with window.Module.FS.filesystems.IDBFS

Please re-open, if that doesn't help.

Originally posted by @pavelsavara in https://github.com/dotnet/runtime/issues/74664#issuecomment-1231551045

msd-kharazi avatar Oct 07 '24 05:10 msd-kharazi

Oh, my bad. Yet '-lidbfs.js' flag must be added in csproj:

-lidbfs.js

msd-kharazi avatar Oct 07 '24 05:10 msd-kharazi