clerk / clerk-docs

The documentation content for Clerk, an authentication and user management platform.
https://clerk.com/docs
108 stars 460 forks source link

app is not compiling when following Expo docs #442

Closed varand-pez closed 1 year ago

varand-pez commented 1 year ago

Hi all, I'm trying to use Clerk as my app's user management and facing issues when following the docs.

So when I got to step 3, I tried to run the app to make sure the wirings are correct. The first error I got was missing dependency, expo-auth-session. Then I installed it with it's required/peer dependency mentioned in Expo docs.

Then started the app again and I'm getting this:

Simulator Screenshot - iPhone 15 Pro Max - 2023-10-19 at 23 02 15

I'm using "expo": "49.0.15", with Expo Router

Is Clerk not supporting this routing mechanism yet?

Thank you in advance.

varand-pez commented 1 year ago

I did some more experiments and tried to import <ClerkProvider> from "@clerk/clerk-react. At this time the app throws an error saying the CLERK_PUBLISHABLE_KEY is incorrect, but I have checked it multiple times, and it's correct.

Simulator Screenshot - iPhone 15 Pro Max - 2023-10-19 at 23 17 43

SimbaWANGU commented 1 year ago

Hello @varand-pez

I was stuck on the second issue when using expo until two minutes ago. When following the docs as well, I imported the @clerk/clerk-react package, unknowingly and passing my publishableKey as the docs asked. I changed the import to @cler/clerk-expo and reloaded my app and it worked.

I hope it will work for you as well :)

I'm using expo-router as well.

varand-pez commented 1 year ago

hmmm, yes many times, I went back and forth about those imports. thank you for trying to unblock me, I still have the issue.

varand-pez commented 1 year ago

I upgraded to the latest version "@clerk/clerk-expo": "^0.19.14", but the issue persist. can anyone from the team help me here. It's worth to mention that my code is already connected to convex and was working fine before adding the clerk dep.

LekoArts commented 1 year ago

Hi, thanks for opening the issue.

If you have found a bug with the Expo SDK, please create a bug report here: https://github.com/clerkinc/javascript If you need help with Expo, head over to our Discord server.

This repository is about the Clerk documentation and as such I'm closing this issue.

varand-pez commented 1 year ago

Thanks @LekoArts I thought it's relevant because I was following the docs. I'll try your provided link then.