# “组件是使用 gjs 编写的”——但事实并非如此

**URL:** https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736
**Category:** Development
**Created:** [2025年三月18日 11:53 UTC](https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736 "2025-03-18T11:53:55Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2025年三月18日 11:53 UTC](https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736/1 "2025-03-18T11:53:55Z")

</div>

在稳定版 3.4.1 上。

我的插件中有这个文件  
/assets/javascripts/discourse/controllers/user-feedback.js

然后  
/assets/javascripts/discourse/templates/user-feedback.hbs 包含

`{{feedback-stream stream=this.model}}`

然后是这些文件：

```plaintext
/assets/javascripts/discourse/components/feedback-stream.js
/assets/javascripts/discourse/templates/components/feedback-stream.hbs

```

这是我在浏览器控制台中看到的错误。

```
**/discourse/templates/components/feedback-stream] feedback-stream 是使用 gjs 编写的，其模板无法被覆盖。正在忽略覆盖。有关模板覆盖未来的更多信息，请参阅 https://meta.discourse.org/t/247487**
```

但是，正如您所见，它不是使用 gjs 编写的。

现在我决定暂时忽略此错误，并继续现代化插件。一旦我将模板放在一起（`mv templates/components/* components`），错误就消失了。但模板仍然被忽略。

---

_[View the full topic](https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736)._
