• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

Vue3 swiper 라이브러리 사용하기가 힘듭니다.

21.09.26 18:15 작성 조회수 1.01k

0

하루종일 헤매네요

vue3 청강후 vue3로 사이트 개발중입니다.

퍼블리셔가 swiper 사용하여 만든디자인을 vue3에서 사용하려니 안돼네요.

vue-swesome-swiper은 vue3가 지원이 안되는거 같고요~ㅠㅠ

swiper 공식사이트 (https://swiperjs.com/vue) 에가서 시키는대로 설치하고 코딩하였는데

빌드시 오류가 납니다.

오류내용

ERROR Failed to compile with 2 errors 오후 6:08:44 These dependencies were not found: * swiper/css in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/pages/index.vue?vue&type=script&lang=js * swiper/vue in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/pages/index.vue?vue&type=script&lang=js To install them, you can run: npm install --save swiper/css swiper/vue

 

고수님들 이유를 알수 있을까요 ?

 

 

 

 

답변 1

답변을 작성해보세요.

0

에러 끝에 보시면 npm install --save swiper/css swiper/vue 로 설치하라고 하는데 해보셨나요?

김경우님의 프로필

김경우

질문자

2021.09.27

네 해봤지만 설치가 안되더군요~