Using <Link> leads to rendering error #13761
-
Hi! I am moving an app I built with React to Next.js, and I ran into a really weird issue. I have a page that is literally just text content, with a few links. However, when I try to use Here's my code:
Here's the error:
I am not sure what I am doing wrong, but removing the gets rid of the error. Any pointers as to what I could be doing wrong? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Are you sure you are importing import Link from 'next/link' If you are already doing that, I would need more info to know what may be happening, a reproduction with the error would help a lot |
Beta Was this translation helpful? Give feedback.
-
Omg I am so stupid, I was importing it like this:
Thank you so much! |
Beta Was this translation helpful? Give feedback.
Are you sure you are importing
Link
like this?If you are already doing that, I would need more info to know what may be happening, a reproduction with the error would help a lot