TypeError: The super constructor to "inherits" must not be null or undefined
The documentation for inherits says that the "super constructor" is the second parameter, so this error implies that EventEmitter is null or undefined. I checked the documentation, and it says:
const EventEmitter = require('events');
But node-irc currently does this instead:
var EventEmitter = require('events').EventEmitter;
If I remove the trailing .EventEmitter as in this pull request, the error in atom-irc is resolved.
atom-irc
is erroring out currently at this line:The documentation for
inherits
says that the "super constructor" is the second parameter, so this error implies thatEventEmitter
is null or undefined. I checked the documentation, and it says:But
node-irc
currently does this instead:If I remove the trailing
.EventEmitter
as in this pull request, the error inatom-irc
is resolved.