Error running game #1

Closed
opened 2015-12-11 16:18:20 +00:00 by mamal72 · 1 comment
mamal72 commented 2015-12-11 16:18:20 +00:00 (Migrated from github.com)

Hi. I'm getting this error running the game:

/Users/mamal/.nvm/versions/node/v4.2.2/lib/node_modules/node-games/spacecraft.js:1
(function (exports, require, module, __filename, __dirname) { import Unit from './classes/unit';
                                                              ^^^^^^

SyntaxError: Unexpected reserved word
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:414:25)
    at Module._extensions..js (module.js:442:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/mamal/.nvm/versions/node/v4.2.2/lib/node_modules/node-games/node_modules/babel-register/lib/node.js:138:7)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/mamal/.nvm/versions/node/v4.2.2/lib/node_modules/node-games/index.js:16:1)
    at Module._compile (module.js:435:26)
Hi. I'm getting this error running the game: ``` bash /Users/mamal/.nvm/versions/node/v4.2.2/lib/node_modules/node-games/spacecraft.js:1 (function (exports, require, module, __filename, __dirname) { import Unit from './classes/unit'; ^^^^^^ SyntaxError: Unexpected reserved word at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:414:25) at Module._extensions..js (module.js:442:10) at Object.require.extensions.(anonymous function) [as .js] (/Users/mamal/.nvm/versions/node/v4.2.2/lib/node_modules/node-games/node_modules/babel-register/lib/node.js:138:7) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (/Users/mamal/.nvm/versions/node/v4.2.2/lib/node_modules/node-games/index.js:16:1) at Module._compile (module.js:435:26) ```
mdibaiee commented 2015-12-11 18:07:42 +00:00 (Migrated from github.com)

@mamal72: Thanks, it's fixed now.

@mamal72: Thanks, it's fixed now.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thereadme/node-console-games#1
No description provided.