Skip to content
Discussion options

You must be logged in to vote

원인

'use client' 를 사용하면 해당 에러가 발생한다고 한다!..

해결 방안

next/router 대신 next/navigation을 사용하자!
import { useRouter } from 'next/navigation';
해결 👊💢

Replies: 1 comment 1 reply

Comment options

miniposi
Feb 11, 2024
Maintainer Author

You must be logged in to vote
1 reply
@hanseulhee
Comment options

Answer selected by miniposi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants