When I try to run a simple client in nodejs it produces error
var client = new Colyseus.Client('ws://localhost:8002');
^
TypeError: Colyseus.Client is not a constructor
at file:///xxxx/client.js:5:14
at ModuleJob.run (internal/modules/esm/module_job.js:140:23)
at async Loader.import (internal/modules/esm/loader.js:162:24)
When I try to run a simple client in nodejs it produces error
var client = new Colyseus.Client('ws://localhost:8002'); ^ TypeError: Colyseus.Client is not a constructor at file:///xxxx/client.js:5:14 at ModuleJob.run (internal/modules/esm/module_job.js:140:23) at async Loader.import (internal/modules/esm/loader.js:162:24)