Jerenaux / phaserquest

Reproduction of Mozilla's BrowserQuest using Phaser, socket.io and Node.js
http://www.dynetisgames.com/2017/03/18/phaser-quest/
MIT License
374 stars 126 forks source link

Starting server (server.js) error #12

Open ultimo5 opened 5 years ago

ultimo5 commented 5 years ago

Thanks for your great job. I am very interesting PQ, wanna run ASAP.
BTW, I faced error when I start server.

[root@localhost]# node server.js Listening on 8081

/home/neoguru/html/pq_test/js/server/GameServer.js:84 Object.assign(GameServer.db.entities,GameServer.db.client_entities); // me ^ TypeError: Object function Object() { [native code] } has no method 'assign' at Object.GameServer.readMap (/home/neoguru/html/pq_test/js/server/GameServer.js:84:12) at Server.io.on.socket.pings (/home/neoguru/html/pq_test/server.js:85:8) at Server.g (events.js:180:16) at Server.emit (events.js:92:17) at net.js:1056:10 at process._tickCallback (node.js:458:13) at Function.Module.runMain (module.js:499:11) at startup (node.js:119:16) at node.js:945:3

I am not fix mongoDB yet. Do I have to set it first?

Jerenaux commented 5 years ago

It's a very strange error, Object.assign() is standard in Node.js, but apparently it is not recognized here. What version of Node.js are you using? This doesn't seem to be related to MondoDB in any case!

ultimo5 commented 5 years ago

Yes, I think so. hm... My Node.js version is bellow.

[root@localhost]# node -v v0.10.48

How about this case? hehe T_T

Nerothos commented 5 years ago

0.10.48? o_O Are you sure your node version is up to date? Because the last LTS one is 10.XX.xx

Jerenaux commented 5 years ago

What's the status of this issue? @ultimo5 did you upgrade your Node.js?

ultimo5 commented 5 years ago

I upgraded, but I still have been faced error. hm... And I want to discuss with you something about this game's commercial service. My private email is neoguru@cosmosinfra.net. When you are free, please send me email.

Thank you.