kidjp85 / react-id-swiper

A library to use idangerous Swiper as a ReactJs component which allows Swiper's modules custom build
https://react-id-swiper.ashernguyen.site/
MIT License
1.49k stars 154 forks source link

Error in Next 13 / App #524

Open thefubon opened 1 year ago

thefubon commented 1 year ago

Please tell me how to properly install for Next 13

Import trace for requested module:
./node_modules/react-id-swiper/lib/index.js
./components/_swiper/index.tsx
./app/page.tsx
- warn Fast Refresh had to perform a full reload due to a runtime error.
- wait compiling...
- error ./node_modules/react-id-swiper/lib/ReactIdSwiper.js:37:31
Module not found: ESM packages (swiper) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals

https://nextjs.org/docs/messages/module-not-found