emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.64k stars 3.29k forks source link

Uncaught Error: No runtime abstraction layer installed #21940

Open prtham23 opened 4 months ago

prtham23 commented 4 months ago

I am creating a figma plugin and want to run the wasm file during the figma frame export. But I am not able to run the .wasm file and getting the below errors. Should I run the .wasm file directly or should I go through the .js file generated. image image

sbc100 commented 4 months ago

This looks like a figma issue rather than an emscripten one. That error message is not coming from emscripten but from (I assume) figma.

In general you can't expect to be able to instantiate a wasm file like that without providing imports and with emscripten-generated wasm file we certainly recommend using the emscripten-generated JS rather than loading the wasm directly.