# Theme component update issue

**URL:** https://meta.discourse.org/t/theme-component-update-issue/311078
**Category:** Development
**Created:** [June 7, 2024, 3:13am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078 "2024-06-07T03:13:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![user14893](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/user14893/32/512271_2.png) [@user14893](https://meta.discourse.org/u/user14893)
#### Post date: [June 7, 2024, 3:13am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078/1 "2024-06-07T03:13:54Z")

</div>

Our site’s theme component won’t work with the latest Discourse version. Whenever we try fixing it in [safe mode](https://meta.discourse.org/t/53504?silent=true) following console prompts, the site crashes as soon as we open the component. How can we fix this?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 7, 2024, 4:36am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078/2 "2024-06-07T04:36:55Z")

</div>

A lot depends on the theme component and what version of Discourse you’re using. Could you provide a little more detail?

You can find the exact version of Discourse you’re on from the admin Dashboard. If you can copy the blue link to share here:

 ![version number](https://global.discourse-cdn.com/meta/original/4X/5/e/c/5ec86179c84c74e8f241553f79c1125cd8a81f7c.jpeg)

---

<div class="post-metadata">

### Author: ![user14893](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/user14893/32/512271_2.png) [@user14893](https://meta.discourse.org/u/user14893)
#### Post date: [June 7, 2024, 5:13am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078/4 "2024-06-07T05:13:03Z")

</div>

yep exactly this version. we haven’t updated discourse for over a year till recently, guessing the component stopping cuz the ember 5? dunno

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 7, 2024, 5:15am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078/5 "2024-06-07T05:15:40Z")

</div>

And what theme component is it?

---

<div class="post-metadata">

### Author: ![user14893](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/user14893/32/512271_2.png) [@user14893](https://meta.discourse.org/u/user14893)
#### Post date: [June 7, 2024, 5:20am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078/6 "2024-06-07T05:20:05Z")

</div>

we made it ourselves

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 7, 2024, 5:20am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078/7 "2024-06-07T05:20:35Z")

</div>

You’re going to need to share the code if you want someone to help you fix it… 🙂

---

<div class="post-metadata">

### Author: ![user14893](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/user14893/32/512271_2.png) [@user14893](https://meta.discourse.org/u/user14893)
#### Post date: [June 7, 2024, 5:29am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078/8 "2024-06-07T05:29:06Z")

</div>

[https://github.com/ttlclub/search-filter](https://github.com/ttlclub/search-filter)  
Here, tysm for your help

---

<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: [June 7, 2024, 8:04am UTC](https://meta.discourse.org/t/theme-component-update-issue/311078/9 "2024-06-07T08:04:50Z")

</div>

Your component is throwing a number of deprecation warnings in the console, so you should look at those.

More important, it’s overriding quite some HBS templates. You should analyze the changes for these templates between the version the theme component was built for, and the current version of Discourse, and synchronize the changes (or copy the templates and re-apply your own modifications).

To be honest, at a first glance it would be better if you (at least partly) rewrote the theme component to make better use of plugin outlets.
