-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No ESM build? #760
Comments
Hey @sigma-andex. We don't currently have an ESM build right now unfortunately. ESM should be able to import CommonJS without issue though. Please try I tried adding an ESM build before shipping v3 but couldn't figure it out in a reasonable amount of time: mostly had trouble getting the local examples/tests to work. I've been meaning to look into that again, and honestly was waiting for someone to complain, so thank you 😅 I'll try and look at it this week but I can't promise a timeline. If you have experience with this I would massively appreciate any assistance! |
@MatthewHerbst Any questions, maybe I can help you with something. I can build an esm format, but it's not tested. |
I'm on ReactRouter7 and |
@bruno-py you should be importing it by doing |
Is there no ESM build? I'm trying to use it in Remix + Vite and Vite complains that it is a CJS module that cannot be imported.
The text was updated successfully, but these errors were encountered: