Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.49k stars 174 forks source link

[HTML5 Debug] "Require not defined" crash when loading assets #1301

Closed zshoals closed 3 years ago

zshoals commented 3 years ago

Describe the bug Attempting to load an asset results in a "require not defined" error on the HTML5 debug target. This probably happens with any asset, but I only personally tested with a font and an image.

To Reproduce Steps to reproduce the behavior:

  1. Load an asset with either Assets.loadEverything or Assets.load[assetType]

Expected behavior No error/the project just runs.

Screenshots Here's Domarius's error output: https://cdn.discordapp.com/attachments/757530769315856425/818366845949313054/unknown.png

Execution Environment:

Additional context Dunno if this is a Kha error or something with VSCode, so hopefully this issue is in the right location.