I’m having trouble compiling my game. I searched the forum for a solution but couldn’t find anything. What helped me was when someone mentioned pressing F12 to view the error, but I’m not sure how to fix the issue. What appears in the console is this:
compile.html:17
Extracting js data from:
compile.html:17 version.js
compile.html:17 …/persist.js
compile.html:17 …/alertify.min.js
compile.html:17 …/util.js
compile.html:17 …/ui.js
compile.html:17 …/scene.js
compile.html:17 …/navigator.js
compile.html:17 mygame.js
compile.html:91 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘split’)
at slurpFileLines (compile.html:91:23)
at generateMygame (mygamegenerator.js:121:15)
at compile (compile.js:115:19)
at compile.js:87:30
I managed to solve the problem by compiling the game through the compile option that appears in run-server.bat as soon as the game starts in the browser; it is no longer an issue.