vue2 + typescript 전환 시 vue-router error

Maliethy·2023년 1월 9일
0

typescript

목록 보기
3/3

issue

 "dependencies": {
    "vue": "^2.6.12",
    "vue-router": "3.5.1",
    "vuetify": "2.6.5",
    "vuex": "^3.6.2",
  },

다음과 같은 상태에서 tsconfig.json 파일 추가 시 아래와 같은 vue-router 에러 발생

solution

  1. yarn remove vue-router
  2. yarn add vue-router@3.5.3

참고:
https://www.inflearn.com/questions/455055/quot-export-x27-default-x27-imported-as-x27-vue-x27-was-not-found-in
https://joshua1988.github.io/web-development/vuejs/vue3-as-default/

profile
바꿀 수 있는 것에 주목하자

0개의 댓글