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.
Describe the bug I'm bumping against this error:
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