eggjs / egg

🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
https://eggjs.org
MIT License
18.9k stars 1.82k forks source link

egg-socket.io error: The super constructor to "inherits" must not be null or undefined 什么原因? #2284

Closed DragWeb closed 6 years ago

DragWeb commented 6 years ago

egg-socket.io 在线上报错

2018-03-28 17:30:+08:00: /data/online/open-api/node_modules/egg/lib/application.js:55
      throw e;
      ^

TypeError: [egg-core] load file: /data/online/open-api/node_modules/egg-socket.io/app.js, error: The super constructor to "inherits" must not be null or undefined
    at Object.inherits (util.js:971:11)
    at Object.<anonymous> (/data/online/open-api/node_modules/redis/lib/customErrors.js:42:6)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/data/online/open-api/node_modules/redis/index.js:9:20)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
ngot commented 6 years ago

可复现的代码仓库提供下。