# Plugin template helper

**URL:** <https://meta.discourse.org/t/plugin-template-helper/51160>\
**Category:** Development\
**Created:** [October 6, 2016, 6:23am UTC](https://meta.discourse.org/t/plugin-template-helper/51160 "2016-10-06T06:23:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Post date:** [October 24, 2016, 5:42pm UTC](https://meta.discourse.org/t/plugin-template-helper/51160/2 "2016-10-24T17:42:02Z")

</div>

> [@sevenmaxis](#):
>
> I’m using this helper in template, in development environment it works well but in docker production it produces an error:

This would be because you’re using a different version of Discourse in development and docker production.

This commit moved the helpers from `discourse/lib/helpers` to `discourse-common/lib/helpers`:

[https://github.com/discourse/discourse/commit/be1d74d20772e3a4ed2b3daed9700249024a133f](https://github.com/discourse/discourse/commit/be1d74d20772e3a4ed2b3daed9700249024a133f)

So if you update your development environment, and change the first line of your code to:

```plaintext
import { registerHelper } from 'discourse-common/lib/helpers';

```

then everything should work.

---

_[View the full topic](https://meta.discourse.org/t/plugin-template-helper/51160)._
