# Error in browser console when using hashtag autocomplete in the composer: undefined generateIconHTML

**URL:** https://meta.discourse.org/t/error-in-browser-console-when-using-hashtag-autocomplete-in-the-composer-undefined-generateiconhtml/400570
**Category:** Bug
**Tags:** hashtag-autocomplete
**Created:** [April 13, 2026, 8:38pm UTC](https://meta.discourse.org/t/error-in-browser-console-when-using-hashtag-autocomplete-in-the-composer-undefined-generateiconhtml/400570 "2026-04-13T20:38:52Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [April 14, 2026, 8:13pm UTC](https://meta.discourse.org/t/error-in-browser-console-when-using-hashtag-autocomplete-in-the-composer-undefined-generateiconhtml/400570/3 "2026-04-14T20:13:36Z")

</div>

> [@Moin](#):
>
> In full [safe mode](https://meta.discourse.org/t/53504?silent=true) (no themes and no plugins), as soon as I use `#` in the composer, this error appears:  
> `Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'generateIconHTML')`

This one will be fixed by

[https://github.com/discourse/discourse/pull/39267](https://github.com/discourse/discourse/pull/39267)

> [@Moin](#):
>
> If I use [safe mode](https://meta.discourse.org/t/53504?silent=true) only for themes, so plugins are active, the error above does not appear when I use the hashtag autocomplete. But after I select a category using `#`, it triggers this error instead:  
> `[autocomplete] handleKeyup: TypeError: this.options.dataSource is not a function`

That one I’m having trouble reproducing 🤔

---

_[View the full topic](https://meta.discourse.org/t/error-in-browser-console-when-using-hashtag-autocomplete-in-the-composer-undefined-generateiconhtml/400570)._
