https://stackoverflow.com/questions/63124161/attempted-import-error-switch-is-not-exported-from-react-router-dom
글을 참고해서 알게 된 내용이다.
Switch -> Routes ,
component -> element 로 변경해야 한다.
검색해보니 이제 exact 는 안 쓰는 것 같다.
"<ChatPage / >" 이런 식으로 element 값 안에서도 적어주어야 함!!!
+) F12 눌러서 개발자 도구 확인하면 에러 사항을 파악할 수 있어서 좋음