# Issue using topic-list-tags plugin outlet

**URL:** <https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716>\
**Category:** Development\
**Created:** [December 2, 2016, 9:02pm UTC](https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716 "2016-12-02T21:02:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swohlever](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@swohlever](https://meta.discourse.org/u/swohlever)\
**Post date:** [December 2, 2016, 9:02pm UTC](https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716/1 "2016-12-02T21:02:46Z")

</div>

Hi. New Discourse dev here. I am trying to get a simple template test to work. I’ve created a basic \*,hbs file (just some text) and dropped it into plugins/myplugin/assets/javascripts/discourse/templates/connectors/topic-list-tags in my local deployment. However, I get this error in the JS console when I load the page:

```
discourse/helpers/plugin-outlet:101 Uncaught TypeError: c.template is not a function
    at eval (discourse/helpers/plugin-outlet:101:20)
    at Array.map (native)
    at Class.eval (discourse/helpers/plugin-outlet:100:32)
    at Object.eval [as main] (eval at createFunctionContext (handlebars), <anonymous>:18:125)
    at main (handlebars:1161:33)
    at ret (handlebars:1164:13)
    at Class.value [as buildBuffer] (discourse/components/topic-list-item:72:23)
    at Class._customRender (discourse-common/lib/buffered-render:19:14)
    at Class.caller.didRender (discourse-common/lib/buffered-render:39:14)
    at Class.trigger (ember:45804:23)

```

(And the templateName of object c does match the path of my template when the error occurs.)

I’ve had luck doing more complicated things in the same plugin with other outlets (e.g., composer-fields-below). When I remove the topic-list-tags directory from my plugin, things work fine. Any thoughts?

---

<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:** [December 5, 2016, 5:47am UTC](https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716/2 "2016-12-05T05:47:02Z")

</div>

@eviltrout any idea what is up here?

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [December 5, 2016, 5:08pm UTC](https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716/3 "2016-12-05T17:08:13Z")

</div>

It looks to me like you’re trying to inject a non-raw handlebars template into a raw handlebars template.

Make sure your connector ends with `.raw.hbs` and it should work.

---

<div class="post-metadata">

**Author:** ![swohlever](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@swohlever](https://meta.discourse.org/u/swohlever)\
**Post date:** [December 5, 2016, 5:28pm UTC](https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716/4 "2016-12-05T17:28:37Z")

</div>

Yep, that seems to have fixed it. Thank you.

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [December 5, 2016, 10:14pm UTC](https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716/5 "2016-12-05T22:14:13Z")

</div>


