TypeError: Cannot read properties of undefined (reading 'Symbol(Symbol.metadata)') #865
-
Beta Was this translation helpful? Give feedback.
Answered by
endel
Jun 11, 2025
Replies: 1 comment 3 replies
-
Hi @mmzhangliyang, I hope you are well! Which version of I'd suggest to try upgrading If the issue persists I will ask you to provide a small isolated repository that reproduces the issue so I can take a look! Cheers |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing. You need to add
"useDefineForClassFields": false
to yourtsconfig.json
file.This config is required because of how
@colyseus/schema
uses property descriptors in classes in conjunction to JavaScript's legacy decorators.