3

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

조성재
  • 159
  • 1
  • 5

2 Answers2

12

I solved this problem.

In that version

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

You should use it like this.

조성재
  • 159
  • 1
  • 5
0

I ran into a similar issue with NextJs and posted my answer in another stackoverflow thread. Try it, maybe it will help solve the problem.

Garvae
  • 465
  • 4
  • 14