# 无法将模板放入理想的出口

**URL:** <https://meta.discourse.org/t/cannot-put-the-template-in-the-desired-outlet/330650>\
**Category:** Development\
**Created:** [2024年十月13日 09:22 UTC](https://meta.discourse.org/t/cannot-put-the-template-in-the-desired-outlet/330650 "2024-10-13T09:22:58Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [2024年十月14日 11:01 UTC](https://meta.discourse.org/t/cannot-put-the-template-in-the-desired-outlet/330650/10 "2024-10-14T11:01:44Z")

</div>

是的，这很公平。让我们改进错误消息：

> <https://github.com/discourse/discourse/pull/29191>
>
> theme-setting and theme-i18n are not needed in \`.gjs\` files. This commit adds mo…re helpful error messages to direct developers to the modern alternatives.
> 
> \<img width="740" alt="SCR-20241014-kvmu" src="https://github.com/user-attachments/assets/810218e7-ca70-4611-b0af-85d4323543b2"\>
> 
> \<img width="722" alt="SCR-20241014-kvau" src="https://github.com/user-attachments/assets/219ed2bc-7a39-46ac-9f07-46aa798db319"\>

 ![SCR-20241014-kvau](https://global.discourse-cdn.com/meta/original/4X/0/f/a/0fab4bcc66c477d60f1ec566e7ad59a1e4c91ab5.png)  
 ![SCR-20241014-kvmu](https://global.discourse-cdn.com/meta/original/4X/9/5/9/959ddf38c5112742794e5a8472edf3cdb6e8b3d9.png)

---

_[View the full topic](https://meta.discourse.org/t/cannot-put-the-template-in-the-desired-outlet/330650)._
