Until recently, there were no problems during the building of the project, but now after building the project does not start. Instead, a simple gray screen and the following errors:
What type of build is this as it looks like you are running a local build but with the file:/// protocol?
Are you trying to run the build by double clicking the index.html file? If so, that doesn’t work unless you pass -allow-file-access-from-file as a command line argument when starting up Chrome.
You will need to run a local server to test builds locally.
I’m not aware of an engine changes recently that would change this as the error message is a browser security issue. It’s not something the PlayCanvas can affect.
This screenshot was taken after running the file locally via Google Chrome on Windows, so it is possible that the error in the image really tells about the lack of browser permission to open files locally. However, when running the iOS build, the behavior is the same, but I can`t look at the console in the ios application to understand what the problem is.
In addition, if I run one of the previous builds, everything also works properly.
So the problem is somewhere in the building process.
If that’s the case, please try using the engine version 1.36.1 (found here: https://code.playcanvas.com/playcanvas-1.36.1.min.js) (After exporting the build from PlayCanvas, replace playcanvas-stable.min.js with the 1.36.1 version).
It’s possible you are running into the same issue that my PR fixes in the next engine release.