whiteboard icon indicating copy to clipboard operation
whiteboard copied to clipboard

TypeError: Cannot read property 'prototype' of undefined

Open Hardik500 opened this issue 6 years ago • 0 comments

Hey there, I am unable to run your app, whenever I run the node "app.js" command it provides the following error log,

node app.js
/home/hardik/Documents/git/whiteboard/node_modules/socket.io/lib/store.js:35
Store.prototype.__proto__ = EventEmitter.prototype;
                                         ^

TypeError: Cannot read property 'prototype' of undefined
    at Object.<anonymous> (/home/hardik/Documents/git/whiteboard/node_modules/socket.io/lib/store.js:35:42)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Module.require (internal/modules/cjs/loader.js:1036:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/hardik/Documents/git/whiteboard/node_modules/socket.io/lib/manager.js:16:13)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)

Could you please explain me what might me the issue

Hardik500 avatar Mar 21 '20 15:03 Hardik500