Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. Heartbit
H

Heartbit

@Heartbit

Chat Follow Unfollow
0
Reputation
1
Posts
658
Profile views
0
Followers
0
Following
Joined 6 Nov 2021, 10:15 Last Online 6 Nov 2021, 11:35

  • Profile
  • More
    • Continue chat with Heartbit
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
Heartbit Follow

Posts made by Heartbit

Why does Jest logs `TypeError: decode[type] is not a function` error while testing ?

Game
✕ Should connect (8003 ms)

● Game › Should connect

TypeError: decode[type] is not a function

  at decodePrimitiveType (node_modules/@colyseus/schema/src/Schema.ts:109:34)
  at _.Object.<anonymous>.Schema.decode (node_modules/@colyseus/schema/src/Schema.ts:352:25)
  at SchemaSerializer.Object.<anonymous>.SchemaSerializer.setState (node_modules/colyseus.js/src/serializer/SchemaSerializer.ts:10:20)
  at Room.Object.<anonymous>.Room.setState (node_modules/colyseus.js/src/Room.ts:225:25)
posted in Questions & Help • 6 Nov 2021, 11:38

© 2023 Endel Dreyer