I have noticed something happening with some PGs where they will compile just fine when you are working on them and hitting play; but is someone navigates to it you will see the redbox with ‘createScene function must return a scene.’
It was also happening to me on a couple of my PG’s. I noticed a work around was to copy all of the code make a new PG then paste the code and hit run, but that’s what made me realize it must be a bug if its happening or more PGs than just mine.
After digging through scene with similar things going on, it was all kinda the same stuff. Wrong references to scene, that actually compile if its inside the createScene function due to scope.