# 找不到模块 ember addons

**URL:** https://meta.discourse.org/t/could-not-find-module-ember-addons/217771
**Category:** Support
**Created:** [2022年二月10日 11:04 UTC](https://meta.discourse.org/t/could-not-find-module-ember-addons/217771 "2022-02-10T11:04:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mark6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark6/32/249505_2.png) [@Mark6](https://meta.discourse.org/u/Mark6)
#### Post date: [2022年二月10日 11:04 UTC](https://meta.discourse.org/t/could-not-find-module-ember-addons/217771/1 "2022-02-10T11:04:25Z")

</div>

几个月前，我还在使用一个曾经运行完美的开源插件，但现在它坏了。每次按下插件的“核心”按钮时，我都会收到以下错误：

 ![371196b2c912352578531796e882313034ed1ed6](https://global.discourse-cdn.com/meta/original/3X/7/8/7889a855c5875bcad76d74fad46eab2ccb619b05.png)

我偶然发现了这个帖子：

> [@Removal of ember-addons/ember-computed-decorators](https://meta.discourse.org/t/removal-of-ember-addons-ember-computed-decorators/132977/2):
>
> 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. [https://github.com/discourse/discourse/blob/15f6f57cdcebc7583ddb5a311174d10a7300ae4a/app/assets/javascripts/discourse-loader.js#L6](https://github.com/discourse/discourse/blob/15f6f57cdcebc7583ddb5a311174d10a7300ae4a/app/assets/javascripts/discourse-loader.js#L6)

但是，正如一位团队成员所说（更不用说它是在 2019 年插件工作的时候），有一个别名可以自动加载装饰器。该插件的仓库最后一次提交是在 2019 年。我需要更新 `node_module` 吗？

非常感谢您的支持。  
谢谢。

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [2022年二月10日 11:06 UTC](https://meta.discourse.org/t/could-not-find-module-ember-addons/217771/2 "2022-02-10T11:06:03Z")

</div>

您遇到哪个开源插件的问题？

马克提到的别名已被删除（它已经打印了多年的弃用警告），这就是为什么它现在会导致错误。

---

<div class="post-metadata">

### Author: ![Mark6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark6/32/249505_2.png) [@Mark6](https://meta.discourse.org/u/Mark6)
#### Post date: [2022年二月10日 11:10 UTC](https://meta.discourse.org/t/could-not-find-module-ember-addons/217771/3 "2022-02-10T11:10:18Z")

</div>

我正在使用以下内容：[GitHub - buildthomas/post-approval: Implements the community post approval procedure and tools for the Roblox Developer Forum](https://github.com/buildthomas/post-approval)

有趣的是，在搜索源代码后，我似乎找不到任何使用 `ember-addons` 的地方。

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [2022年二月10日 11:19 UTC](https://meta.discourse.org/t/could-not-find-module-ember-addons/217771/4 "2022-02-10T11:19:55Z")

</div>

我在这里看到了几个用法：

> <https://github.com/buildthomas/post-approval/blob/master/assets/javascripts/discourse/controllers/move-post-approval.js.es6#L6-L11>

这些需要更新为指向 `discourse-common/utils/decorators`

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2022年三月12日 11:20 UTC](https://meta.discourse.org/t/could-not-find-module-ember-addons/217771/5 "2022-03-12T11:20:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
