const ddp = new DDP(options);
TypeError: DDP is not a constructor
at Object.<anonymous> (/home/proft/projects/testddp/d.js:8:14)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.runMain (module.js:575:10)
at run (bootstrap_node.js:352:7)
at startup (bootstrap_node.js:144:9)
at bootstrap_node.js:467:3
Hi!
I have simple code
It produces following error
My
npm
install command isnpm install ws ddp.js
.What is wrong? :)