This is drop-in replacement for eventemitter3 with fixed exports and modern syntax (because the original's repo is dead).
npm i @electrovir/eventemitter3
Add the following to your package.json
(in a mono-repo, make sure it's added to the root of the mono-repo):
"overrides": {
"eventemitter3": "npm:@electrovir/eventemitter3"
}