# GJS component fails with "undefined helper" error when shown via modal service (Discourse 3.5.0

**URL:** <https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272>\
**Category:** Development\
**Created:** [April 17, 2025, 7:04am UTC](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272 "2025-04-17T07:04:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [April 17, 2025, 10:45am UTC](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272/2 "2025-04-17T10:45:18Z")

</div>

I tried your minimal test code and it works for me:

 ![This image shows a modal dialog box with a title "My Modal Title" and placeholder text "MINIMAL MODAL TEST," along with two buttons labeled "Cancel" and "Submit." (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/9/4/f/94f25146d3c3ae4f3e09a99b55199d38cfa55a3a.png)

The only changes I made is to add a missing _action_ import, removing a comment outside the template and forcing the button to show.

Can you make a quick TC on GitHub that triggers this error?

---

_[View the full topic](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272)._
