# Recent error in component $.widget is not a function

**URL:** https://meta.discourse.org/t/recent-error-in-component-widget-is-not-a-function/216894
**Category:** Support
**Created:** [February 2, 2022, 8:19pm UTC](https://meta.discourse.org/t/recent-error-in-component-widget-is-not-a-function/216894 "2022-02-02T20:19:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![guildai](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guildai/32/248544_2.png) [@guildai](https://meta.discourse.org/u/guildai)
#### Post date: [February 2, 2022, 8:19pm UTC](https://meta.discourse.org/t/recent-error-in-component-widget-is-not-a-function/216894/1 "2022-02-02T20:19:11Z")

</div>

Today I started seeing the banner **Your site may not work because theme / component Guild AI DiscoTOC has errors** on [https://my.guild.ai](https://my.guild.ai)

The issue appears to be the use of `$.widget` here:

[https://github.com/guildai/DiscoTOC/blob/master/common/header.html#L64](https://github.com/guildai/DiscoTOC/blob/master/common/header.html#L64)

Has something in Discourse changed that would lead to this? What’s your advice to fix the problem?

Thanks!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 2, 2022, 8:32pm UTC](https://meta.discourse.org/t/recent-error-in-component-widget-is-not-a-function/216894/2 "2022-02-02T20:32:55Z")

</div>

> [@guildai](#):
>
> Guild AI DiscoTOC

Looks like your forked this component 2 years ago, so it went stale and incompatible with current Discourse.

You will need to either move to the official component, or rebase your fork.
