Cannot extend an interface 'NodeJS.EventEmitter'. Did you mean 'implements'? 解决方法
。 为什么会出现这种情况呢? 这是因为@types/node在不断地更新,但是electron能够支持地最高版本只是它的v12版本,所以才会出现二者不兼容的情况。
Solution:
Use @types/node for Node v12 for now. Actually Node version of Electron is still v12. So @types/node@12 would be better when you write a code which runs on Electron.
作者:艾孜尔江