mediacenterjs
mediacenterjs copied to clipboard
Error while Running the Server:TypeError: Cannot read property 'prototype' of undefined
Hi! I have built the server from the source. while running it using command "node server" I am getting the bellow error. info: Starting server /home/smartron/mediacenterjs/node_modules/socket.io/lib/store.js:35 Store.prototype.proto = EventEmitter.prototype; ^ TypeError: Cannot read property 'prototype' of undefined
Could any one please help me with this?
+1
+1
EventEmitter.prototype is deprecated in newer Node versions. I need to rewrite so it uses require('events'). A temp work around is to use a older Node version. Thanks for poiting this out!
Reading this in 2020 - sad face. I guess this will not happen?