# 更新后主题组件出现重大问题

**URL:** <https://meta.discourse.org/t/rendering-typeerror-with-theme-components-after-update/381263>\
**Category:** Bug\
**Created:** [2025年九月2日 10:10 UTC](https://meta.discourse.org/t/rendering-typeerror-with-theme-components-after-update/381263 "2025-09-02T10:10:38Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [2025年九月2日 18:14 UTC](https://meta.discourse.org/t/rendering-typeerror-with-theme-components-after-update/381263/9 "2025-09-02T18:14:57Z")

</div>

这将修复 air 主题中的 `color-input` 错误。但这个问题并非新问题，所以我认为它不太可能是导致这些渲染错误的原因

> <https://github.com/discourse/discourse/pull/34689>
>
> This import will fail for non-admin users. Most of the time this isn't causing a… problem, since \`edit-category-general\` isn't imported by non-admin logic. However, if a theme imports or calls \`modifyClass\` on it, this import will be evaluated and fail.
> 
> This was affecting an initializer in the discourse-air theme for non-admin users. However, the automatic error recovery for theme initializers caught it, so the only impact was a console log.

---

_[View the full topic](https://meta.discourse.org/t/rendering-typeerror-with-theme-components-after-update/381263)._
