Must use import to load ES Module #5009
Answered
by
nolimits4web
lausoffici
asked this question in
Q&A
-
Im trying to build my next.js app and I don't understand why I'm getting this error: I use ES6 modules. I tried adding "type": "module" in package.json. Version of Swiper: 7.0.6 I hope someone knows about this problem. |
Beta Was this translation helpful? Give feedback.
Answered by
nolimits4web
Sep 27, 2021
Replies: 1 comment 1 reply
-
Make sure you are using latest version of Next.js and enable experimental modules in config. For reference check Swiper's website which also uses Next.js https://github.com/nolimits4web/swiper-website |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lausoffici
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure you are using latest version of Next.js and enable experimental modules in config. For reference check Swiper's website which also uses Next.js https://github.com/nolimits4web/swiper-website