vm75 / wasm_ffi

Translates dart:ffi calls on the web to WebAssembly using dart:js
https://github.com/vm75/wasm_ffi
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

DartError: Bad state: Could not find a emscripten module named dicom_ffi #7

Open feliwir opened 1 week ago

feliwir commented 1 week ago

Hey, i did compile my source with emcmake to JS + WASM files. When loading the file i get the following error:

DartError: Bad state: Could not find a emscripten module named dicom_ffi
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:3  throw_
packages/wasm_ffi/src/ffi/modules/emscripten_module.dart 71:7                _getModuleFunction
packages/wasm_ffi/src/ffi/modules/emscripten_module.dart 80:28               <fn>

Those are my WASM files: dicom_ffi.zip

Do i need any special flags when compiling with Emscripten? Could you maybe add a description how you've compiled the WASM inside the example? Thanks

vm75 commented 1 week ago

Hi @feliwir , thanks for reporting this. I will look into it

vm75 commented 1 week ago

Can you share a minimal project?