-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Dynamic class from TypeScript can't be used on NodeJS #23553
Comments
Thanks. Also, the |
Transpiling to es2015 is needed to support JS class, due to: microsoft/TypeScript#23553
Transpiling to es2015 is needed to support JS class, due to: microsoft/TypeScript#23553
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
tsc: 2.8.3
Transpiles to
When using in NodeJS 9.4.0 (and likely many versions before this):
Error message:
TypeError: Class constructor Foo cannot be invoked without 'new'
due to this line:
The text was updated successfully, but these errors were encountered: