I load an .svg file which is used for collision. This works locally, but not when exported to Facebook Instant. Is it possible to load .svg files on Facebook instant? I’ve tried to bundle the files, which didn’t work.
Edit: The svg thing might be a red herring, see below.
So, the files do end up in the bundle, and maybe it isn’t the .svg files that are causing the issue. The screen turns black after loading, with these errors in the console:
What is the actual filename? Can you double check the case and that it matches above? Also, check extension (.lua not .LUA).
Looked at the code and this will most definitely fail:
The require path is known. There is no need for that kind of magic. And Defold needs the paths to be explicit and static to include the files. There may be more require calls like the one above.