You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to gather together the dependencies for the controller_server.js script, but once I've included the gameCord.js file, it complains because of the for.. of .. syntax used near the bottom:
/aml/home/lthatch1/game_generator/controller/gameCord.js:168
for (var m of searchSpace) {
^^
SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/aml/home/lthatch1/game_generator/controller/controller_server.js:10:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
It looks like I do not have support for that type of syntax, and unfortunately there is no other documentation declaring the list of dependencies or requirements. I'm not sure if I need to update Node, or something else?
I'm using v0.10.36 of NodeJS.
The text was updated successfully, but these errors were encountered:
for...of is ECMAScript6 and my Node.js is0.12.7, so it is just the older version of Node.js. I can change the syntax to not include that if you'd like. Also, I haven't got it running yet, so you'll hit bugs even if you do successfully run it.
I've been trying to gather together the dependencies for the
controller_server.js
script, but once I've included thegameCord.js
file, it complains because of the for.. of .. syntax used near the bottom:It looks like I do not have support for that type of syntax, and unfortunately there is no other documentation declaring the list of dependencies or requirements. I'm not sure if I need to update Node, or something else?
I'm using
v0.10.36
of NodeJS.The text was updated successfully, but these errors were encountered: