Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

The misuse of path of swiper.css causes the dependency was not found #828

Open
violet-lu opened this issue Dec 8, 2021 · 1 comment
Open

Comments

@violet-lu
Copy link

I tried to use the swiper in version 2.6.7,but the error keep telling me that :
image
even after i change the version to the latest one ,the problem can't be solved.
I have googled this error for several hours,nothing to be found.
Then I check the path of swiper.css.it it under the css folder in dist rather than swiper ,so the information is wrong .
I change the "import 'swiper/css/swiper.css'" to "import 'swiper/dist/css/swiper.css'",no error.

@LHB153
Copy link

LHB153 commented Feb 16, 2022

或者这个路径也可以
import 'vue-awesome-swiper/node_modules/swiper/dist/css/swiper.css'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants