playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
154 stars 28 forks source link

404 error when publishing with custom loading screen that is marked preload and concatenation of scripts is disabled #613

Open yaustar opened 2 years ago

yaustar commented 2 years ago

Forum thread: https://forum.playcanvas.com/t/failed-to-load-custom-loading-screen/22886/11 Example project: https://playcanvas.com/editor/scene/1274653 Published link with the error: https://playcanv.as/p/Ym69z7Di/

image

There’s a bug where if the project is built/published with concatenation of scripts disabled AND the custom loading script is set to preload, you will get the error.

If preload is disabled or concatenation of scripts is enabled, then you won’t get the error.

In either case, the custom loading script does get added and loaded correctly

marklundin commented 5 months ago

I suggest we add this to the documentation and additionally ensure that any script added as a loading screen is marked as no preload