-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class static side 'typeof Emitter' incorrectly extends base class static side 'typeof EventEmitter' #385
Comments
Hi @moltar if you could provide some steps to reproduce this, that would be great! Looking at the typescript example in this repository, I do not see this problem. Thanks. :) |
Yup, here you go: https://github.com/moltar/cloudevents-exp Thanks! |
+1 |
I'm having this issue as well in version 4.0.0. I did some testing and it looks like it's caused by the version of I downgraded to |
@mnesbitt thanks for that info. I'll take a look. |
This change modifies Emitter so that it does not directly extend the Node.js EventEmitter class. Instead, it holds a singleton instance of an EventEmitter but is not an instance of EventEmitter itself. This commit also updates the typescript example to use a modern version of @types/node and typescript. Finally there are a few minor formatting changes picked up by eslint. Fixes: #385 Signed-off-by: Lance Ball <[email protected]>
@mnesbitt @moltar @hilfor if you all have an opportunity to test this change in your project and provide feedback, that would be appreciated. Thanks! |
@lance can we get a pre-release or an alpha channel release? It's not easy to test this, because the code needs to be transpiled to be recognized by NPM. I installed it from the PR:
But the dir does not have the packaged files:
|
This change modifies Emitter so that it does not directly extend the Node.js EventEmitter class. Instead, it holds a singleton instance of an EventEmitter but is not an instance of EventEmitter itself. This commit also updates the typescript example to use a modern version of @types/node and typescript. Finally there are a few minor formatting changes picked up by eslint. Fixes: #385 Signed-off-by: Lance Ball <[email protected]>
Describe the Bug
When building the project with TS, I get the following error:
Steps to Reproduce
N/A
Expected Behavior
Build passing.
Additional context
The text was updated successfully, but these errors were encountered: