# 모달 서비스를 통해 표시할 때 GJS 구성 요소가 "undefined helper" 오류로 실패합니다 (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:** [4월 17, 2025, 7:04오전 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:** 5

<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:** [4월 18, 2025, 3:24오전 UTC](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272/5 "2025-04-18T03:24:23Z")

</div>

리포지토리를 공유해 주셔서 감사합니다. 도움이 되었습니다!  
문제를 찾았습니다. StartRatInput 컴포넌트 때문이 아니라, 실제로는 `eq`를 잘못된 경로에서 가져오고 있기 때문입니다.

여기서 실패합니다:

```js
checked={{eq this.testRating ratingValue}}

```

수입(import)을 변경해야 합니다:

`import { eq } from "@ember/helper";`  
→  
`import { eq } from "truth-helpers";`

결과:

 ![이미지는 "Minimal Modal"이라는 제목의 폼에서 StarRatingInput 렌더링 실패를 나타내는 오류 메시지를 보여줍니다. "Test Rating"으로 표시된 평가 척도와 1~5성 중 하나를 선택하는 옵션이 있으며, 하단에는 "Test EQ Helper", "Cancel", "Submit" 버튼이 있습니다. (AI 캡션)](https://global.discourse-cdn.com/meta/original/4X/b/e/b/bebc81b9bd0c89205d15544465c094249d854629.png)

---

_[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)._
