ganlanyuan/tiny-slider

incompatible with Next.js "Cannot use import statement outside a module"

Closed this issue · 4 comments

Issue description:
I used "tiny-slider-react" which it uses this package. This is what happens when loaded. I think there is something wrong with cjs/esm configs

Screen Shot 2022-07-21 at 10 58 37 PM

Demo link/slider setting:

Tiny-slider version:
2.9.4

Browser name && version:
OS name && version:

nvm. issues happens with 'tiny-slider-react' package

@kdong007 How did you manage to fix this?