google / blockly-games

Games for tomorrow's programmers.
https://blockly.games/
Apache License 2.0
1.29k stars 605 forks source link

Maze just show button #121

Closed hoangvietfreelancer closed 5 years ago

hoangvietfreelancer commented 5 years ago

All other can be run execpt Maze The errror in console of Maze is: Uncaught TypeError: N.Ia is not a function But when i reload the page, the problem is resolve

NeilFraser commented 5 years ago

Two more pieces of information that would help:

hoangvietfreelancer commented 5 years ago

I made a modification for my school at: https://dev.misblockly.tk/maze.html This is a repeatable error.

NeilFraser commented 5 years ago

The problem is in https://dev.misblockly.tk/masterFunc.js This file declares a global variable named N which collides with another global variable named N declared in https://dev.misblockly.tk/maze/generated/vi/compressed.js Since masterFunc.js loads async, there is a race condition, sometimes it loads first (fine), sometimes not (crash).

Hope this helps!

hoangvietfreelancer commented 5 years ago

Thanks :)