[vue] import 경로 에러

이런 식으로 경로를 못찾는다고 나올 때

src 폴더 아래에 shims-vue.d.ts 라는 파일 생성 후

/* eslint-disable */
declare module '*.vue' {
  import type { DefineComponent } from 'vue'
  const component: DefineComponent<{}, {}, any>
  export default component
}

라고 넣으면 해당 에러 사라짐

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com