# コンポーザーでハッシュタグの自動補完を使用する際のブラウザコンソールエラー: 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:** [2026 年 4 月 13 日午後 8:38 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:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2026 年 4 月 13 日午後 8:38 UTC](https://meta.discourse.org/t/error-in-browser-console-when-using-hashtag-autocomplete-in-the-composer-undefined-generateiconhtml/400570/1 "2026-04-13T20:38:53Z")

</div>

まだ問題には気づいていませんが、フォーラムのコンポーザーでハッシュタグの自動補完機能を使用すると、ブラウザのコンソールにエラーメッセージが表示されます。

2 つのわずかに異なるバージョンがあります。

完全なセーフモード（テーマやプラグインなし）では、コンポーザーで `#` を使用するとすぐに、次のエラーが表示されます。  
`Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'generateIconHTML')`

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/6/6/b6601e57bbd7078944b675714790c3beb5057ea2.png)

テーマのみをセーフモードに設定し、プラグインを有効にした場合、ハッシュタグの自動補完を使用しても上記のエラーは表示されません。ただし、`#` を使用してカテゴリを選択すると、代わりに次のエラーが発生します。  
`[autocomplete] handleKeyup: TypeError: this.options.dataSource is not a function`

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/7/c/07c2a1d6c550b898979255a2b878e4b0c8682f35.png)

これの原因が何であるか、ご存知の方がいらっしゃいますか？

---

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