clerk-expo now always requires installing expo-local-authentication
Closed this issue · 6 comments
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
Documention requires updating:
When using clerk-expo, you must now install expo-local-authentication
or it will break on Android, even if you're not using expo-local-authentication
Android Bundling failed 23781ms node_modules/expo-router/entry.js (7369 modules)
Unable to resolve "expo-local-authentication" from "node_modules/@clerk/clerk-expo/dist/hooks/useLocalCredentials/useLocalCredentials.js"
This breaking change was introduced in eb7cfae
on PR: #3663
Link to the related docs page
https://clerk-docs-git-prettier-fixes.clerkpreview.com/quickstarts/expo
Installing expo-local-authentication fixes the issue. This was a breaking change introduced in #3663
Environment
System:
OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900K
Memory: 54.17 GB / 62.68 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 22.4.0 - ~/.nvm/versions/node/v22.4.0/bin/node
npm: 10.8.1 - ~/.nvm/versions/node/v22.4.0/bin/npm
pnpm: 8.15.1 - ~/.local/share/pnpm/pnpm
bun: 1.1.18 - ~/.bun/bin/bun
Hey @the-simian Try following the instructions in #3954 and use this snapshot for a quick fix
npm i @clerk/clerk-expo@2.2.0-snapshot.v5f4676a --save-exact
@the-simian did the snapshot fixed the issue for you ?
@panteliselef I installed the missing dependency to work past this for the time being, I've not tested the snapshot
Hey @the-simian Try following the instructions in #3954 and use this snapshot for a quick fix
npm i @clerk/clerk-expo@2.2.0-snapshot.v5f4676a --save-exact
I can confirm this snapshot fixes the issue.
This seemed to also work for me, I'll use the snapshot for the time being
This has been fixed in @clerk/clerk-expo@2.2.0