-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
learn starter temp error : Invalid <Link> with <a>child #98
Comments
Hi @rashaabdulrazzak, I have created a PR for this issue. #99 |
My guess is that both the tutorial and this repository were meant to be used with Next <13. However the dependencies were recently updated to their most up-to-date version in #97 by @delbaoliveira. IMO, I don't think it's a good idea. I have an open PR #92 that locks the
Hi @Thinura! Sorry, but that doesn't seem like a good solution since the idea is to get rid of nested |
@lgaspari yeah I think this is a good idea or at least the tutorial should mention the version of Next.js to use |
after working through the tutorial when I arrived to
https://nextjs.org/learn/basics/assets-metadata-css/polishing-layout
when I run it I got the following error
Error: Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>. Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor
the code for the layout has 3 places that have Link and a tag under them. I resolved it by deleting the a tag. There is another way from next docs to add legacyBehavior to the Link and give the a tag the id called link
The text was updated successfully, but these errors were encountered: