react error - export 'route' (imported as 'route') was not found in 'react-router-dom' (possible exports: browserrouter, form, hashrouter,

pyk0844·2023년 2월 7일
0

"export 'route' (imported as 'route') was not found in 'react-router-dom' (possible exports: browserrouter, form, hashrouter,"

이런 에러가 떳는데,,

npm uninstall react-router

npm uninstall react-router-dom

npm install react-router react-router-dom

순차로 실행하니 해결..

How to fix error: Attempted import error: 'Route' is not exported from 'react-router-dom'

0개의 댓글