Skip to main content

Notes and common pitfalls

  • Ensure locateFile returns the correct .wasm URL; otherwise flora.js will fail during instantiation.
  • The WASM module runs entirely in memory. Model files must be written into MEMFS before calling InitNLM.
  • createFloraModule is async and must resolve before using ccall or FS.
  • Output parsing requires typed memory views (HEAPU8, HEAP32, HEAPF32, HEAPU32); build them from wasmMemory if they are missing.

Next: Full example