Hi, all.
I want to play around with the headless client and have followed the instructions to setup the dev environment.
The web server was up and the database has loaded.
However, when I try to simulate a one game via simulate.coffee script, I meet the following error:
loading /Users/cyyuen/projects/coco/app/lib/simulator/Simulator
loading /Users/cyyuen/projects/coco/app/models/SuperModel
loading /Users/cyyuen/projects/coco/app/core/CocoClass
loading ./../core/utils
TypeError: Object #<Object> has no method 'createElement'
at Object.<anonymous> (/Users/cyyuen/projects/coco/app/core/utils.coffee:148:20)
at Object.<anonymous> (/Users/cyyuen/projects/coco/app/core/utils.coffee:1:1)
at Module._compile (module.js:456:26)
at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Module._load (module.js:312:12)
at Function.hookedLoader [as _load] (/Users/cyyuen/projects/coco/headless_client.coffee:74:3)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/cyyuen/projects/coco/app/core/CocoClass.coffee:2:9)
at Object.<anonymous> (/Users/cyyuen/projects/coco/app/core/CocoClass.coffee:2:1)
at Module._compile (module.js:456:26)
at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Module._load (module.js:312:12)
at Function.hookedLoader [as _load] (/Users/cyyuen/projects/coco/headless_client.coffee:74:3)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/cyyuen/projects/coco/app/lib/simulator/Simulator.coffee:2:13)
at Object.<anonymous> (/Users/cyyuen/projects/coco/app/lib/simulator/Simulator.coffee:1:1)
at Module._compile (module.js:456:26)
at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Module._load (module.js:312:12)
at Function.hookedLoader [as _load] (/Users/cyyuen/projects/coco/headless_client.coffee:74:3)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.$.ajax.success (/Users/cyyuen/projects/coco/headless_client.coffee:117:17)
at fire (/Users/cyyuen/projects/coco/node_modules/JQDeferred/lib/jquery-deferred.js:212:30)
at Object.self.fireWith [as resolveWith] (/Users/cyyuen/projects/coco/node_modules/JQDeferred/lib/jquery-deferred.js:324:7)
at Object.deferred.(anonymous function) [as resolve] (/Users/cyyuen/projects/coco/node_modules/JQDeferred/lib/jquery-deferred.js:73:33)
at Request._callback (/Users/cyyuen/projects/coco/headless_client/jQlone.coffee:43:18)
at Request.self.callback (/Users/cyyuen/projects/coco/node_modules/request/main.js:122:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (/Users/cyyuen/projects/coco/node_modules/request/main.js:661:16)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/Users/cyyuen/projects/coco/node_modules/request/main.js:623:14)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
It seems the html is not emulated in server side. Is there any steps I have missed?
Thanks
Tony