# המשימה rake "assets:precompile" נכשלת עקב בעיית קומפילציית JS

**URL:** <https://meta.discourse.org/t/rake-task-assets-precompile-is-failing-due-to-js-compilation-issue/222602>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [30 במרץ,‏ 2022,‏ 8:30pm UTC](https://meta.discourse.org/t/rake-task-assets-precompile-is-failing-due-to-js-compilation-issue/222602 "2022-03-30T20:30:26Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![hpathak2132](https://avatars.discourse-cdn.com/v4/letter/h/46a35a/32.png) [@hpathak2132](https://meta.discourse.org/u/hpathak2132)\
**Post date:** [31 במרץ,‏ 2022,‏ 8:23pm UTC](https://meta.discourse.org/t/rake-task-assets-precompile-is-failing-due-to-js-compilation-issue/222602/6 "2022-03-31T20:23:24Z")

</div>

I was able to root cause the issue, so essentially while running assets-precompile rake task, it’s trying to load all the js file using hbs templates in [emoji-picker.hbs](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/templates/components/emoji-picker.hbs). The template has certain variables which require the data to be fed by caller and this is where the parsing fails. Other hbs file that don’t have ‘@’ reference are getting compiled successfully.

Any idea or documentation around as to how these hbs templates are used in discourse?

---

_[View the full topic](https://meta.discourse.org/t/rake-task-assets-precompile-is-failing-due-to-js-compilation-issue/222602)._
