-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Rollup class fields error: 'super' keyword outside a method #3505
Comments
This is an issue in the underlying acorn plugin, I filed an issue upstream: acornjs/acorn-class-fields#9. Not sure when it will be resolved, though, as development is somewhat stalled there 😢 |
It still gives the same error. I don't think this issue was fixed. |
If it is still broken for you, please post a new one. |
Ok, i realised that my error is slightly different than the error on the issue. It still gives the error message, 'super' keyword outside a method. My error is with static properties using the 'super' keyword. I will start a separate issue. |
Referencing the new issue (#3702), should have caught this before... |
In their defense, this time the issue is likely in another plugin, namely acorn-static-class-features vs.acorn-class-fields |
Expected Behavior
The
super
keyword is valid in class fields. For reference:https://2ality.com/2019/07/public-class-fields.html#the-scope-of-field-initializers
Actual Behavior
Error: 'super' keyword outside a method
The text was updated successfully, but these errors were encountered: