You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decorating class properties with computed names throws an error during compilation and class properties whose names are strings will generate code which will throw an error with the message: Decorating class property failed. Please ensure that transform-class-properties is enabled..
Google-ing for that error turned up issue #13 and looking through the other issues #59 seems to actually be the same problem.
I'd like to add the reproduction cases from the attached gist to the unit test but I am not confident enough I'll be able to actually solve this issue by myself. :)
I believe your decorator usage in the runtime-error example is wrong (as well as the compilation-error example, although it doesn't explain the compilation error). You invoke d, so your decorator function is actually undefined.
Decorating class properties with computed names throws an error during compilation and class properties whose names are strings will generate code which will throw an error with the message:
Decorating class property failed. Please ensure that transform-class-properties is enabled.
.Google-ing for that error turned up issue #13 and looking through the other issues #59 seems to actually be the same problem.
I'd like to add the reproduction cases from the attached gist to the unit test but I am not confident enough I'll be able to actually solve this issue by myself. :)
See this gist for all the files: Decorating properties with computed names
The text was updated successfully, but these errors were encountered: