Blank page and error in Theme Admin

AI-generated summary

A bug in the Theme Admin interface causes a blank page and console error Error: ember-computed-decorators does not support using getters and setters when creating a new theme component. merefield reproduced the issue on multiple machines and identified the problematic line in the code. David confirmed the issue and provided a fix in a commit, which was deployed. albjeremias asked for a workaround, and David clarified that the fix is live, but users who updated during the outage need to update again. merefield thanked David for the quick resolution.

I’ve managed to reproduce this on two entirely different machines and dev installs.

Steps to reproduce:

1.Start Discourse locally with: EMBER_ENV=production bin/ember-cli -u (though Ember ENV doesn’t seem to change things here)
2. Ensure there are no third party plugins or Theme Components installed.
3. Navigate to Admin → Customize → Theme
4. Create New Theme Component
5. Attempt to add some CSS
6. This results in blank page and this error in the console:

Error: ember-computed-decorators does not support using getters and setters

https://github.com/discourse/discourse/commit/a433b30650d125e6685fb13f679f613003f246aa

@David if I check out just before this, everything is fine …

4 Likes

Think I’ve found the offending line:

3 Likes

Thanks @merefield - should be fixed by

https://github.com/discourse/discourse/commit/ad0fd9919b7431ebcee2361647cd9955f7705f91

4 Likes

any workaround for now? :roll_eyes:

The fix is live now. If you updated your site during the hours when it was broken, you’ll need to run another update now to get things working again.

3 Likes

yep. i did it one hour ago.. :relieved: didn’t known it worked like this. thanks.

2 Likes

thanks @David … I was in the process of creating a PR, but appreciate the rapid response, you’ve saved me lots of time: it would have certainly taken me longer! :sweat_smile:

2 Likes

This topic was automatically closed after 3 days. New replies are no longer allowed.