-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
TypeError: Class constructor Actor cannot be invoked without 'new' #2742
Comments
Repo link https://github.com/nparoski/web-game |
Hi @nparoski thanks for the issue! I'll look into this, I haven't seen this before! |
@eonarheim there is branch called, feature/es6-classes I belive. (Thought I linked to it but just saw I didnt.) Also Im not seeing any difference when changing tsconfig compilerOptions.target to es6 in bundles. Might be related to nx and not excalibur at all🤔 Thanks for help and time. |
Also opened issue on nx/web about it.nrwl/nx#18735 |
@eonarheim Error is resolved and it indeed was problem with nx using swc under the hood. You can checkout nrwl/nx#18735 to see more details |
This issue hasn't had any recent activity lately and is being marked as stale automatically. |
Closing for now! Let me know if we should update some docs! |
Steps to Reproduce
Expected Result
I'm expecting this code snippet to work and compile without any errors.
Actual Result
Clicking on error displays this (line 3 is where error is at)
Environment
The text was updated successfully, but these errors were encountered: