Invalid href passed to router error after fresh installed create-next-app

后端 未结 6 565
盖世英雄少女心
盖世英雄少女心 2021-02-05 18:02

After installed nextjs app on my local machine using create-next-app I get this error in console Invalid href passed to router.

Does anyone kno

6条回答
  •  悲哀的现实
    2021-02-05 18:24

    "External URLs, and any links that don't require a route navigation using /pages, don't need to be handled with Link; use the anchor tag for such cases instead."

    Given in the docs: https://nextjs.org/docs/api-reference/next/link

提交回复
热议问题