ValentinH / react-easy-sort

A React component to sort items in lists or grids
https://ValentinH.github.io/react-easy-sort
MIT License
172 stars 26 forks source link

add type: module to your package.json #48

Open rob-bar opened 1 month ago

rob-bar commented 1 month ago

Describe the bug I'm bumping against this error:

Internal server error: Cannot use import statement outside a module

This stackoverflow url describes the same problem: https://stackoverflow.com/questions/75785671/error-cannot-use-import-statement-outside-a-module-while-testing-in-vite

My guess is that either type: module should be added in your published packages or you need to investigate this further. It's funny because when I include your library inside a normal vite react project it works fine, when I do that in a remix app it complains about above error.

Any ideas?

Thanks for your help

rob-bar commented 1 month ago

So I'm sure there is something I can do on my end to fix this but I do not yet know what.

rob-bar commented 1 month ago

This also relates to this https://github.com/remix-run/remix/issues/9070