0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

react.js next.jsエラー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

Posted at

[エラー]Error: Invalid with child. Please remove or use . Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchorを解決

環境

Mac(M1, 2020)

ぶつかったエラー

スクリーンショット 2022-11-26 7.57.18.png

翻訳・意味
エラー: の子を持つ が無効です。 を削除するか、 を使用してください。
詳細:
https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor

やったこと

1.aタグを削除した

結果

エラーが解決されリンクが表示された。
詳細についてはこの記事が初学者の自分にとってわかりやすかった。
https://zenn.dev/luvmini511/articles/b5e9f02cadd160

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?