Recent Posts
Recent Comments
Archives
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 모던 자바스크립트
- nextjs
- error
- js
- 셋팅
- 스파르타코딩클럽
- git
- useRouter
- 구글 로그인
- 티스토리챌린지
- 소셜 로그인
- CORS
- 자주 까먹는
- 내일배움캠프
- 프로젝트 셋팅
- 코테
- array정적메서드
- deep dive
- 오블완
- 코딩테스트
- 프로그래머스
- vercel
- 초기셋팅
- domain
- 코드카타
- Next
- vscode
- React
- 최적화
- 모던자바스크립트
- Today
- Total
목록troubleshooting (1)
도록
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/OE8xA/btsISrVLN1X/HFAhzDxKudKJcSJTK8Jedk/img.png)
결론 : Server Components가 Client Component에게 전달 할 수 있는 값은 한정되어 있다. 에러메세지Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it. {Icon: function y, onClick: undefined} 해결책문제가 생긴 Server Component 상단에 "use client" 를 붙여준다.or 해당 props를 넘겨주지 않도록 구조를 바꾼다. 상황요약: Server..
React
2024. 8. 4. 17:14