The discussion centers on the migration of decorators from ember-addons/ember-computed-decorators to discourse-common/utils/decorators, which risks breaking plugins and themes upon update. angus raised concerns that the alias in discourse-loader.js isn’t fully resolving import issues, citing RequireJS errors. markvanlan clarified the alias should handle legacy imports, but acknowledged possible bugs with require usage. outofthebox shared a console warning screenshot, prompting markvanlan to confirm it’s a non-fatal warning for now. To identify affected plugins, markvanlan suggested searching plugin repos for the deprecated import. RGJ shared a helpful grep command that identified several plugins including discourse-canned-replies and discourse-local-dates. outofthebox later reported the issue resolved after plugin updates, citing a commit in discourse-data-explorer. merefield reassured the community that while warnings should be addressed promptly by plugin authors, they’re not critical — a continuous maintenance effort. The thread ends with appreciation for Discourse’s ongoing code improvements outofthebox.
@markvanlan The move of the decorators from ember-addons/ember-computed-decorators to discourse-common/utils/decorators is about to break a number of plugins and themes as soon as folks hit the big blue update button.
This should not be a breaking change. Here in the discourse-loader file, we have added an alias, so that anytime you try and import ember-addons/ember-computed-decorators, it will automatically load discourse-common/utils/decorator instead.
Yeah, I saw that. I’m not sure why, but that doesn’t seem to be working in all cases. I’m gettting a lot of requirejs errors that seem to resolve once I move to the new import.
I can’t see exactly where that error is coming from (what plugin is using ember-addons/ember-compted-decorators), but it does eventually need to be fixed.
That is a warning, rather than an error because ember-addons/ember-compted-decorators is still functional for now.
I would see what plugins you have installed on your instance, then go to each repository in Github and search for ember-addons/ember-compted-decorators.
I believe some of our official Discourse plugins still need this updated so it could be one of our repos.
Hi, I can’t currently reproduce it. But, the phenomenal @RGJ just updated the plugins on our site and I think this resolved the error? He pointed me to these updates: