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
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/
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