Asking for help: I build web player, but failed to run it

Hello!

I followed this instructions to build a web player: How to build web version of easyrpg player?

OS: Ubuntu 22.04.5 LTS on Windows 11 WSL

cmake version 3.31.10

ninja version 1.10.1

I use this to build dependencies: https://github.com/EasyRPG/buildscripts/tree/master/emscripten

And I use this command to build web player.

cmake . -GNinja -Bbuild -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN_DIR/emsdk-portable/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_PREFIX_PATH=$TOOLCHAIN_DIR -DCMAKE_INSTALL_PREFIX=output -DCMAKE_BUILD_TYPE=Release -DPLAYER_JS_BUILD_SHELL=ON -DPLAYER_JS_OUTPUT_NAME=index -DPLAYER_BUILD_LIBLCF=ON
cmake --build build --target install

Everything seems good. But when I run it in Windows using Python http.server I get this error in my browser:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'mount')
    at Object.mount (index.js:1:40277)
    at onPreRun (index.js:1:1725)
    at callRuntimeCallbacks (index.js:1:7722)
    at preRun (index.js:1:4911)
    at run (index.js:1:221201)
    at index.js:1:221692

buildscripts and Player repos are up to date.

I can run nightly build web player downloaded from CI.

Please help me :cry: , what I’m doing wrong?