1
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?

Uncaught ReferenceError: Link is not defined

1
Last updated at Posted at 2026-11-07

Link is not defined 「"Linkが定義されてない"ってことは、ルーティングが上手くいってないのかな?」

image.png
image.png

"Link is not defined"
って出てきたから、Linkって所謂Pathという思い込みが強く、
"/page2/100"のパスが上手く流れなかったのかと思って、一生懸命ソースコードのルーティング系のバグを探していた。

結論 Linkをimportしましょう!!

"Link"そのものをimportする必要がありました!!!

import { Link } from "react-dom-router";

これでばっちりです!!

結構真剣にハマりました・・・💦💦💦

1
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
1
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?