Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nextjs Module not found: Package path Swiper scss

There was an error using the swiper in Nextjs.

"next": "^11.1.2", "swiper": "^7.0.5"

I'm using the version and couldn't get the swiper.scss. I want to know how to solve the issue.

Module not found: Package path ./swiper.scss is not exported from package

enter image description here

like image 988
조성재 Avatar asked Nov 16 '25 16:11

조성재


1 Answers

I solved this problem.

In that version

import 'swiper/scss'
import 'swiper/scss/navigation'
import 'swiper/scss/pagination'

You should use it like this.

like image 176
조성재 Avatar answered Nov 18 '25 07:11

조성재