The error seems to be coming from a file that is not part of the game's code (JoiMZ.js) This is probably coming from JoiPlay, which you might be using to load the game on phone?
Although we do not officially support smartphone versions, I have seen screenshots of people successfully using an emulator. Maybe someone else might be able to answer your question. 🤔(If no one answers here, maybe you can try asking on our Discord server.)