Hi Pierrick, > I followed the instructions but could not get this running: > > $ /usr/share/emscripten/tools/file_packager.py qemu-system-aarch64.data > --preload pack/ > load.js > $ ~/node-v24.13.0-linux-x64/bin/node ./scripts/run-emscripten.mjs > --preload ./load.js ./qemu-system-aarch64.js -- -nographic -m 512M -L pack > file:///home/user/.work/qemu/scripts/run-emscripten.mjs:51 > if (preloadModule) preloadModule.default(Module); > ^ > TypeError: preloadModule.default is not a function > at file:///home/user/.work/qemu/scripts/run-emscripten.mjs:51:41 > Node.js v24.13.0
Thank you for trying the script. That script requires the --export-es6 flag to file_packager.py. This flag was introduced in Emscripten 4.0.13 so please update the Emscripten tools if it is not available. If you're using emsdk, it provides the way to intall newer tools, such as "emsdk update" and "emsdk install 4.0.23" [1]. [1] https://emscripten.org/docs/tools_reference/emsdk.html#how-to-guides Regards, Kohei Tokunaga
