# Preparing for Discourse's upgrade to Ember 5

**URL:** <https://meta.discourse.org/t/preparing-for-discourses-upgrade-to-ember-5/287211>\
**Category:** Announcements\
**Created:** [December 7, 2023, 1:50pm UTC](https://meta.discourse.org/t/preparing-for-discourses-upgrade-to-ember-5/287211 "2023-12-07T13:50:32Z")\
**Posts on this page:** 1\
**Showing post:** 22

<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:** [December 13, 2023, 5:35pm UTC](https://meta.discourse.org/t/preparing-for-discourses-upgrade-to-ember-5/287211/22 "2023-12-13T17:35:20Z")

</div>

Hi Damien 👋.

> [@damienalexandre](#):
>
> when fixing the deprecation I have to code my theme for both Ember 3 and Ember 5?

Discourse and Ember only deprecate things once there is an alternative available for immediate use. So if there are any changes you need to make, those can be made straight away and will work under Ember 3.

This is the approach we’re taking in Discourse core and in all our official themes and plugins. We’re not creating separate code for Ember 3 / Ember 5.

> [@damienalexandre](#):
>
> Do we have a choice to upgrade or not? Or you are the only one to decide?

I’m afraid it’s not optional. Keeping Discourse core’s dependencies up-to-date is essential for us in terms of security, performance and features. The features which Ember 5 provides are going to become essential for future improvements to Discourse itself.

> [@damienalexandre](#):
>
> Is there a way to Ember 5 on my forum without breaking everything in production? I’m on the hosted **Business Plan**.

That is a good question! We’re putting a lot of work at the moment into making this transition as smooth as possible, and are working on various tooling improvements.

One of those improvements landed a few hours ago, and should help you here.

[https://github.com/discourse/discourse/pull/24870](https://github.com/discourse/discourse/pull/24870)

If you visit `/safe-mode` on your forum, there is now a checkbox for “Make Javascript deprecations raise an error”.

 ![SCR-20231213-pjrd](https://global.discourse-cdn.com/meta/original/4X/3/5/6/3564a28caef77a9d416bcf6d5be1a0fccc01b534.png)

That will allow you to safely see how your site works with all pending deprecations converted into errors.

_Technically_ that is not quite the same as “Testing ember 5 on the forum”. But it’s a good way to simulate the upcoming breaking changes without needing a fully separate staging environment.

---

_[View the full topic](https://meta.discourse.org/t/preparing-for-discourses-upgrade-to-ember-5/287211)._
