phaserquest icon indicating copy to clipboard operation
phaserquest copied to clipboard

Starting server (server.js) error

Open ultimo5 opened this issue 6 years ago • 5 comments

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?

ultimo5 avatar Jan 14 '19 06:01 ultimo5

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!

Jerenaux avatar Jan 14 '19 20:01 Jerenaux

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

ultimo5 avatar Jan 15 '19 00:01 ultimo5

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

Nerothos avatar Jan 15 '19 08:01 Nerothos

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

Jerenaux avatar Jan 19 '19 16:01 Jerenaux

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 [email protected]. When you are free, please send me email.

Thank you.

ultimo5 avatar Jan 25 '19 04:01 ultimo5