Mark6 is experiencing an error with the open-source plugin post-approval after pressing its ‘core’ button, receiving a module not found error related to ember-addons. They referenced a 2019 post about Ember addon deprecation but noted the plugin’s last commit was also in 2019 and asked if updating node_modules would help. david clarified that the alias for ember-addons has been fully removed (after years of deprecation warnings), which is causing the breakage. Mark6 confirmed they couldn’t find direct references to ember-addons in the plugin’s code, but david pointed out two specific lines in move-post-approval.js.es6 that still import from ember-addons. He advised updating those imports to use discourse-common/utils/decorators instead. The issue stems from outdated Ember decorator syntax that is no longer supported in current Discourse versions.
I’m using an open source plugin that used to work perfectly a few months ago, however it’s broken now. I keep getting the following error, each time I press the plugin’s ‘core’ button:
However, as stated by a team member, (not to mention it’s in 2019 when the plugin worked), there is an alias to automatically load the decorator instead. The plugin’s repo was last commited to in 2019. Do I need to update the node_module??