Moving to JS native class syntax in themes and plugins

The error that I got that made me want to find this topic was discussed at Prettier complains that @discourseComputed cannot be used to decorate literal properties

SyntaxError: Decorators cannot be used to decorate object literal properties. (9:3)

EDIT: OH. It’s right here in the text, but I swear search didn’t find it, and the AI sent me to my year-old topic.

And sadly, though the magic worked on my controllers and routes, it doesn’t seem to have fixed my components.

1 Like