next-saas-starter icon indicating copy to clipboard operation
next-saas-starter copied to clipboard

Error: Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.

Open shahzain-lab opened this issue 1 year ago • 1 comments

First, I was getting error @types/react are not installed, I resolved this by upgrading nextjs and react versions. then, I was able to run my local server.

Now, I am getting this error on root page and pages cannot load. It would be great if I get the details to fix this issue. Thanks

shahzain-lab avatar Nov 01 '23 21:11 shahzain-lab

Every time you see <NextLink...> add legacyBehavior: e.g. <NextLink href="#" passHref legacyBehavior>

bunnypp avatar Jan 16 '24 12:01 bunnypp