MV Weird Game bug, please help "this._canvasClearWindowRect is not a function"

So I deployed my demo, and for most PCs and laptops, it launches just fine. But my friend's PC shows this bug the moment he opens the game. At first it was showing issues with Yanfly's FPS plugin and TDDP's fluid timestep plugin, but after removing those plugin from deployment, we're stuck with this:

1733711282563.png


I tried diving into the code, but I'm unsure what's causing this error. If anyone has any ideas what's happening, please let me know! Thank you!
It is in fact a function in the core scripts, which means something is causing them to be parsed incorrectly.

Common causes of that include typos in JavaScript in plugin parameters or notetags, so you should go over any of those - missing something like a closing brace can cause code to "overflow" into other functions.

Same is true with a plugin, if there's a typo in one it can show up as coming from a different file.

You need to try some basic troubleshooting: is the game bootable with all plugins turned off?

If no, it must be something in your game itself, probably some misused code; if that does work, then start turning plugins back on until you find the cause.

Original thread: https://forums.rpgmakerweb.com/threads/weird-game-bug-please-help-this-_canvasclearwindowrect-is-not-a-function.173778/