한태구
TPToss payments 개발자 커뮤니티
•Created by 한태구 on 5/9/2025 in #❓┃연동개발-문의
nextjs 결제위젯 연동 InvalidSelectorError
안녕하세요.
nextJS 웹에 tosspayments 결제 위젯 연동 중에 있습니다.
결제 연동 안내 docs에 나와있는 대로 구축 했으나 다음과 같은 웹 콘솔 상 오류가 발생하며 결제창이 렌더링이 안됩니다.
새로고침을 하다보면 렌더링이 되나 초기에 페이지에 들어갔을 떄 렌더링이 안되는 이유가 지속적으로 발생되고, 해당 메세지에 대한 사례를 찾아보기 어려워 문의를 남깁니다.
Uncaught (in promise) InvalidSelectorError: selector가 유효하지 않습니다.
at NO (standard:7:331866)
at e.<anonymous> (standard:7:332546)
at h (standard:7:41822)
at Generator.<anonymous> (standard:7:43137)
at Generator.next (standard:7:42232)
at standard:7:136466
at new Promise (<anonymous>)
at qT (standard:7:136246)
at standard:7:332291
at new Promise (<anonymous>)
at standard:7:332257
at h (standard:7:41822)
at Generator.<anonymous> (standard:7:43137)
at Generator.next (standard:7:42232)
at standard:7:136466
at new Promise (<anonymous>)
at qT (standard:7:136246)
at e.value (standard:7:332090)
at Proxy.<anonymous> (standard:7:289981)
at h (standard:7:41822)
at Generator.<anonymous> (standard:7:43137)
at Generator.next (standard:7:42232)
at a (standard:7:136299)
6 replies