在所有文件中出现 'react-router-dom' 错误
Getting 'react-router-dom' error in all the files
ERROR in ./src/components/Button.jsx 6:0-40
未找到模块:错误:无法在 'D:\Agarwal_T\agarwal_traders\src\components'
中解析 'react-router-dom'
谁能帮帮我。
你可以试试运行
npm i react-router react-router-dom --save
ERROR in ./src/components/Button.jsx 6:0-40
未找到模块:错误:无法在 'D:\Agarwal_T\agarwal_traders\src\components'
中解析 'react-router-dom'谁能帮帮我。
你可以试试运行 npm i react-router react-router-dom --save