-
-
Notifications
You must be signed in to change notification settings - Fork 603
Open
Milestone
Description
Context
I'm guessing this breaks because of experimental decorators or something. This was a head scratcher and I'm opening this ticket to help others avoid the debugging pain that I went through to isolate this issue. (copy pasted code around a bunch to make a minimal reproduction environment)
I'm not sure if this is a bug for y'all to deal with or if it's just something that should have a warning added to the docs. Either way, I hope this saves somebody some time!
Bug description
If I set "target": "es2022"
in my tsconfig.json, Colyseus breaks.
Reproduction
No response
Steps to reproduce
- Clone this example repo: https://github.com/PatBG/tutorial-phaser-colyseus
- Run the server and client, observe it working.
- Set
target
toes2022
intsconfig.json
. (change is from es6) - Observe the server breaking. Messages don't update state on the server for some reason.
Environment & Versions
Colyseus: 0.15.0
Node: v18.19.1
Typescript: 4.9.5
swordensen
Metadata
Metadata
Assignees
Labels
No labels