# CategoryTitleLinkComponent is undefined

**URL:** https://meta.discourse.org/t/categorytitlelinkcomponent-is-undefined/39757
**Category:** Development
**Created:** [February 17, 2016, 10:35pm UTC](https://meta.discourse.org/t/categorytitlelinkcomponent-is-undefined/39757 "2016-02-17T22:35:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![stevenpslade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenpslade/32/53550_2.png) [@stevenpslade](https://meta.discourse.org/u/stevenpslade)
#### Post date: [February 17, 2016, 10:35pm UTC](https://meta.discourse.org/t/categorytitlelinkcomponent-is-undefined/39757/1 "2016-02-17T22:35:51Z")

</div>

I just upgraded my Discourse from 1.4 to the current tests-passed.

An error that I am having trouble with after the upgrade is:  
`Uncaught TypeError: Cannot read property 'reopen' of undefined` in regards to `Discourse.CategoryTitleLinkComponent.reopen` (this is in one of my plugins).

So I am trying to search for why `CategoryTitleLinkComponent` is now undefined.

Some places I’m looking are the Category controllers and `helpers/category-link.js.es6`.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 17, 2016, 10:47pm UTC](https://meta.discourse.org/t/categorytitlelinkcomponent-is-undefined/39757/2 "2016-02-17T22:47:15Z")

</div>

Have you read?

[https://meta.discourse.org/t/deprecating-es6-compatibility-layer/35821](https://meta.discourse.org/t/deprecating-es6-compatibility-layer/35821)

---

<div class="post-metadata">

### Author: ![stevenpslade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenpslade/32/53550_2.png) [@stevenpslade](https://meta.discourse.org/u/stevenpslade)
#### Post date: [February 17, 2016, 11:02pm UTC](https://meta.discourse.org/t/categorytitlelinkcomponent-is-undefined/39757/3 "2016-02-17T23:02:07Z")

</div>

Thanks, @sam. I just read it. Something I am going to try:

• Removing changing `Discourse.CategoryTitleLinkComponent.reopen` to just `CategoryTitleLinkComponent.reopen`
