Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shahzain-lab opened this issue Nov 1, 2023 · 1 comment

Comments

@shahzain-lab
Copy link

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

@bunnypp
Copy link

bunnypp commented Jan 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants