Unable to use in React Native due to import.meta not being supported #1967
Unanswered
malord
asked this question in
Bug report
Replies: 1 comment 32 replies
-
If import.meta isn't supported, it means ESM isn't supported, I guess. Our intentional workaround is to use "module" condition instead of "import" condition, but I'm afraid Hermes doesn't support those conditions in the first place. 🤔 @barelyhuman Do we have similar issues reported? We use the same config across zustand/jotai/valtio, and I suspect there are RN users who use Hermes... |
Beta Was this translation helpful? Give feedback.
32 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
React Native's Hermes JavaScript engine doesn't support import.meta and exits with an error at compile time, so testing for its existence in code doesn't work. I'm tempted to file a bug for this against Hermes but wondered whether any way around this already existed for Zustand?
Beta Was this translation helpful? Give feedback.
All reactions