באנר ורוד לפתרון תבנית רכיב

סיכום מבוסס בינה מלאכותית

Users are encountering a pink deprecation banner in Discourse after an update, related to the component-template-resolving deprecation in Ember.js. The banner is triggered by outdated theme components using deprecated <script> tags in templates, particularly in unofficial themes like Category Previews and Buttons for Scrolling. Lilly explains that these components need modernization and advises disabling them temporarily. Moin and Richie discuss how to identify the cause using the browser console, with Richie noting the issue also appears in the core Light and Dark themes, likely due to custom code. David clarifies that deprecations are warnings, not immediate breaks, and the system will continue working until September. Lilly confirms the timeline, and patrickemin thanks the community for the clarification. piffy notes that one component, Jump button, has already been updated.

Hi, after updating today to the latest release I have the dreaded :face_with_raised_eyebrow: pink banner:

The image contains a warning about themes, topics, or extensions that might violate community guidelines or terms of use in Element, with a link to further information. (Captioned by AI)

With that page of explanation: Component Template Resolving | Ember.js - Deprecations

I could not understand those explanations… Could someone explain to a rather non technician? :grin:

Thanks

Oh I realize the banner might not be pink for everyone… :upside_down_face:

it’s because you are using 2 unofficial theme components that need to be modernized for templates and js api:

you should disable them until they are fixed. see here:

edit: keep in mind these are admin warnings - the components are not actually broken yet, but will inevitably break in a few months unless updated appropriately.

I’m getting the same warning banner after updating this morning too.

Much like @patrickemin screen shot, mine isn’t telling me the cause of the issue either :confused:

How can I find out which component / or components are causing this banner to appear? :thinking:

לילי שיתפה צילום מסך של קונסולת הדפדפן. אתה יכול לפתוח אותה לדוגמה עם

רשימת הבעיות שלך נראית די ארוכה, אבל רובן הן אותו רכיב

  • תצוגות מקדימות של קטגוריות
  • באנר הסכמת עוגיות
  • אור

או פשוט F12 (Windows)

Ah-ha, thanks :smiley:

I’m a bit worried by the Light warning.

If I think back to around seven years ago, isn’t Light the main core theme that was installed with my Discourse on day one? :thinking:

האם הוספת לזה קוד מותאם אישית?

Ignore that, I get the same warning on Dark too.

I’m guessing that could be caused by some additional CSS or JS that I’ve added :grimacing:

Sorry, overlapping posts.

Yes - lots, it must be caused by that, I’ll check it out thanks :smiley:

I’ve just posted a dedicated topic for this deprecation, and I’ll update the warning banner to link there instead of taking people directly to Ember’s docs.

To expand on this: disabling them will remove the error banner, so that’s fine if you really need to hide it.

But it’s worth noting that deprecation notices don’t mean something is broken. It means that it will be broken in future, and we’re giving developers some advanced warning of that. It’s fine to keep using these things in the meantime.

On the <script> tag deprecation, we have a timeline here - everything will keep working until September.

כן מצטער על כך, הייתי צריך להיות יותר ברור שלאנשים יש בערך חודשיים לתקן את אלה לפני שהם באמת נשברים.

תודה לכולם, זה מאוד ברור!

The Jump button component has now been modernized :slight_smile: