![](/img/trans.png)
[英]How to fix the error: Attempted import error: 'Navlink' is not exported from 'react-router-dom'
[英]'Navlink' is not exported from 'react-router-dom'
我正在使用 ReactJs 並且我正在關注具有不同版本 ReactJs 的視頻。 我正在使用 React 17.0.2 並且出現以下錯誤。
嘗試導入錯誤:“Navlink”未從“react-router-dom”導出。 任何想法?
您嘗試導入的組件名為 NavLink (camelcase),而不是您指定的 Navlink。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.