Closed ypk46 closed 3 years ago
I can't reproduce this bug. Could you share a repl/example? Also, the comment you linked refers to Node's EventEmitter. This library doesn't use this EventEmitter.
@Nerixyz Thank you for your fast response, I now see that the library (alpha version) use eventemitter3
not Node's EventEmitter.
Anyways, I was able to identify the cause of the issue being having the esModuleInterop
enable. You can reproduce it, by enabling esModuleInterop
while having skipLibCheck
disable in your ts-config.json
.
Changing the import syntax of eventemitter3
to import EventEmitter from 'eventemitter3';
may solve this issue. But if anyone run into this, you can also enable skipLibCheck
as a workaround.
I am getting this error whenever I try to build my code using TypeScript:
This may be related to this and I think it only happens if you are using (or a package have a dependency of)
@types/node > 13
.