Recently, when using statsd, this sentence is util. Inherits (configurator, process. Event emitter); Error: “typeerror: the super constructor to” inherits “must not be null or undefined”
The reason is that there is no event emitter object in process in the newer nodejs version. The solution is to create an event emitter object for process before calling util. Inherits, as follows:
process.EventEmitter = require('events').EventEmitter
Read More:
- Default constructor cannot handle exception type FileNotFoundException thrown by implicit super cons
- SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
- “Typeerror: List indexes must be integers or slices, not STR” about error reporting solutions
- TypeError: descriptor ‘__init__‘ of ‘super‘ object needs an argument
- typeerror:the josn object must be str,bytes or byteearray,not ‘dict‘
- mongo Failed to instantiate *** constructor NO_CONSTRUCTOR with arguments
- Vue project error: uncaught typeerror: vuex__ WEBPACK_ IMPORTED_ MODULE_ 1__ . default.store is not a constructor
- TypeError: Cannot read property ‘username‘ of undefined
- Error: EPERM: operation not permitted, mkdir ‘D:\nodejs\node_modules\npm\node_cache\_npx‘
- The media could not be loaded, either because the server or network failed or because the format is
- [Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘map‘ of null“
- org.springframework.dao.InvalidDataAccessApiUsageException: Bean object must not be null; nested exc
- Vue error resolution: TypeError: Cannot read property’_t’ of undefined”
- Uncaught typeerror: cannot set property ‘of null error resolution
- Vue error resolution: typeerror: cannot read property ‘_ t’ of undefined”
- Error in installing torch vision or pilot on Linux or Jetson nano: the headers or library files could not be found for JPEG
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- python-TypeError: list indices must be integers, not tuple Solution
- Datatable plug-in error: uncaught typeerror: cannot read property ‘style’ of undefined
- TypeError: Cannot read property thisCompilation of undefined