Room Error. (SOLVED)
-
I upgrade to 0.9.1, and I have this problem:
TypeError: Class constructor Room cannot be invoked without 'new'
where I got the error:
export class ChatRoom extends Room {
Can you help me ?
Thank you
-
Hi @rscata, this is a pretty weird error, indeed. I don't really know the reason why it happens.
If you're using TypeScript, you can fix it by setting the
"target"
on yourtsconfig.json
to"es2016"
. (example)If you're using JavaScript, you shouldn't use
babel-node
. (see @TORATORA's case)Hope this helps, let me know if that works for you. Cheers!
-