-
Notifications
You must be signed in to change notification settings - Fork 442
Description
Preliminary Checks
-
I have reviewed the documentation: https://clerk.com/docs
-
I have searched for existing issues: https://github.com/clerk/javascript/issues
-
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
-
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
N/A
Publishable key
N/A
Description
Hello,
Clerk is relying on the package.json exports bundling entrypoint. The exports API is unstable and experimental in react native bundlers and must be allowed to be disabled. It frequently breaks and it's not uncommon to disable it due to the problems it causes with isomorphic or web packages. Clerk is using this entrypoint with no fallbacks when it shouldn't. Best practice is to please simply use the package.json react-native: entrypoint. The react-native entrypoint has the highest precedence in react native projects and supercedes all other entrypoints. It's well supported. There are no other runtimes that rely on it. For that reason it's simple, clean and doesn't cause conflicts with other packages, bundlers or runtimes like exports: { ... } does. Thank you!
Steps to reproduce:
- Attempt to run an expo application with unstable_enablePackageExports disabled
- @clerk/expo/token-cache breaks
Expected behavior:
Expect libraries like Clerk not to rely on unstable APIs in react native applications
Actual behavior:
Clerk is relying on an unstable API
Environment
N/A