<aside> ✍️ 작성자: 김혜원 작성일: 24.06.15
</aside>
Uncaught (in promise) Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.
Server action에서 Supabase 통신 작업을 처리한 후 리턴 값으로 받는 { data, error } 가 Class prototype일 경우 이 값을 바로 Client component로 리턴시키면 이와 같은 에러가 발생한다.
예시) **const** error: AuthError | null → error가 발생하면 반환되는 AuthError는 클래스다.
return { data: null, error: error.message } 와 같이 Client로 반환하는 값을 수정했다.