# TypeError: Discourse.Dialect.postProcessText is not a function

**URL:** <https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963>\
**Category:** Development\
**Created:** [September 10, 2016, 10:35am UTC](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963 "2016-09-10T10:35:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [September 10, 2016, 5:14pm UTC](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963/4 "2016-09-10T17:14:41Z")

</div>

I’ll see if I can find time to play around with it here shortly, but at a quick glance, you should remove

```plaintext
register_asset "javascripts/lib/discourse-markdown/pirate-speak.js.es6", :server_side

```

from your plugin.rb, that file doesn’t exist and you don’t need such a line with the new API.

---

_[View the full topic](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963)._
