-
Hi everyone, I'm updating colyseus in a project and I'm getting an error by calling the following line: const room = await client.joinOrCreate<RoomStateType<TRoom>>(GetRoomId<TRoom>(room_spec), options); The error is this one:
I can see it in the Javascript console in the browser. In server side, the Room is successfully calling The id of the serializer( I'm upgrading from this version of colyseus: "@colyseus/command": "^0.1.6",
"@colyseus/core": "^0.14.28",
"@colyseus/mongoose-driver": "^0.14.22",
"@colyseus/monitor": "^0.14.22",
"@colyseus/ws-transport": "^0.14.21",
"colyseus": "^0.14.24",
"colyseus.js": "^0.14.1", to this one: "@colyseus/command": "^0.2.1",
"@colyseus/core": "^0.15.4",
"@colyseus/mongoose-driver": "^0.15.0",
"@colyseus/monitor": "^0.15.1",
"@colyseus/ws-transport": "^0.15.0",
"colyseus": "^0.15.0",
"colyseus.js": "^0.15.0", Any ideas what could be the issue? Should I do anything extra before joining in colyseus 0.15 that wasn't required in colyseus 0.14? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @luisoncpp, this issue sounds like incompatible versions between client and server. Please check in your package-lock.json file if there are still some references to 0.14 - if there is try removing/updating that dependency. Also If the problem persists try removing package-lock.lock and the node_modules folder, and running npm install again. |
Beta Was this translation helpful? Give feedback.
-
Hi, I think I just solved the issue (unless it's one of those problems that randomly happen or stop happening), I guess the problem was that I had both |
Beta Was this translation helpful? Give feedback.
Hi, I think I just solved the issue (unless it's one of those problems that randomly happen or stop happening), I guess the problem was that I had both
redis
andioredis
installed (I installed both because I had to update redis as well, I tried both APIs and forgot to delete the previous one).