-
Notifications
You must be signed in to change notification settings - Fork 267
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
@clerk/clerk-expo ExpoLinking native module not found. #4643
Comments
Hello! Can you try running |
@wobsoriano Hey, i finally fixed the issue. i posted on discord. i will answer here for anyone having this problem in the future. the clerk expo version 2.2.30 was by default installing [email protected] , [email protected], @expo/[email protected] by default. these aren't compatible with expo sdk 51. i had to force clerk to use older versions for the linking to work. If you're using SDK 51, do not install clerk-expo directly via npm without adding these to your package.json file
Also run
The reason being as i said is because expo-linking 7.0 version is not compatible with expo sdk 51. it will crash your app. and by default clerk uses expo-auth as dev dependency which uses expo-linking under the hood. You also it will install expo config plugins 9 which is the latest version. Additional : If you're cloning the clerk-expo starter template from their repo, the reason it works is because the package-lock.json has expo-auth@5 and expo linking 6.3.1 installed. if you remove package-lock.json and node modules and re install again it won't work. Hope that helps |
Thanks @Zakisb! I've updated the quickstart by cleaning up the lockfile and reinstalling with the latest Our package has a peer dependency of We'll update our quickstart for SDK 52 🫡 Thank you! |
You're welcome ! |
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
a simple expo demo app
Publishable key
pk_test_Y2FsbS1mZXJyZXQtNjkuY2xlcmsuYWNjb3VudHMuZGV2JA
Description
Had a working Expo app with @clerk/clerk-expo
Reinstalled node modules and cleaned project:
After reinstall, expo-linking module is not found
After inspection, error seems to be caused by clerk-expo package
Expected behavior:
Actual behavior:
Screen.Recording.2024-11-24.at.3.34.11.PM.mp4
Environment
The text was updated successfully, but these errors were encountered: