Closed punchdrunkard closed 1 year ago
use client
component/index.ts
export
가능하면 첨부해주세요
Add any other context about the problem here. ex) 참고할 만한 자료
https://www.reddit.com/r/nextjs/comments/1063xhw/use_client_not_working_as_expected/
비슷한 에러를 찾아보니, export 방식에 문제가 있는 것 같기도 하다. 문제가 생기는 컴포넌트들에 한해서 default export 를 사용해봐야 곘다.
Next.js
default import
요약
상황 (재현방법)
use client
를 사용하는 컴포넌트가 SSR 단계에서 import 되어 Refernce Error 가 발생하는 중.component/index.ts
에서export
하는 경우이므로, export 방식에서 문제가 생겼을 것이라는 추측이 들기도 한다.스크린샷
가능하면 첨부해주세요
기타
Add any other context about the problem here. ex) 참고할 만한 자료
https://www.reddit.com/r/nextjs/comments/1063xhw/use_client_not_working_as_expected/
비슷한 에러를 찾아보니, export 방식에 문제가 있는 것 같기도 하다. 문제가 생기는 컴포넌트들에 한해서 default export 를 사용해봐야 곘다.