# Invalid <Link> with <a> child #### Why This Error Occurred Starting with Next.js 13, `` renders as ``, so attempting to use `` as a child is invalid. #### Possible Ways to Fix It Run the `new-link` codemod to automatically upgrade previous versions of Next.js to the new `` usage: ```sh npx @next/codemod new-link . ``` This will change `Home` to `Home`. Alternatively, you can add the `legacyBehavior` prop `Home`. ### Useful Links - [next/link](https://nextjs.org/docs/api-reference/next/link)