Skip to content

Ch01 Index Page - Invalid <Link> with <a> child #525

@Minsu386

Description

@Minsu386

Hello, I have just started this project and I am on the first Chapter where we add the Header component to the Index Page.
After Adding the Component to Index, I received the following error:

Unhandled Runtime Error
Error: Invalid with child. Please remove or use .

The error provides a link (see below) with a work around.

Work Around - Add legacyBehavior to your Link tag before the closing. See Reference below.
https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions