Skip to content
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

[SDK-814] [SDK-774] Errors when working with expo-router (related to LinkingConfiguration) #1893

Closed
3 tasks done
jescalan opened this issue Oct 16, 2023 · 1 comment
Closed
3 tasks done

Comments

@jescalan
Copy link
Contributor

jescalan commented Oct 16, 2023

Preliminary Checks

Reproduction / Replay Link

https://github.com/ashuvssut/cookied

Publishable key

pk_test_cGxlYXNhbnQtc2VhbC04MC5jbGVyay5hY2NvdW50cy5kZXYk

Description

When I try to SignIn, I get this warning

The navigation state parsed from the URL contains routes not present in the root navigator.
This usually means that the linking configuration doesn't match the navigation structure.
See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.

Most of the time, the SignIn is successfuly. JWT is stored in secure-storage just fine
In Rare cases, after Signin, navigation doesnt happen.


When I SignOut, I get this error. App crashes.

Error: Got 'undefined' for the navigation state. You must pass a valid state object.

This error is located at:
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by ContextNavigator)
    in ContextNavigator (created by ExpoRoot)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by ExpoRoot)
    in RNGestureHandlerRootView (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by GestureHandler)
    in GestureHandler (created by ExpoRoot)
    in ExpoRoot (created by App)
    in App (created by withDevTools(App))
    in withDevTools(App) (created by ErrorOverlay)
    in ErrorToastContainer (created by ErrorOverlay)
    in ErrorOverlay
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent), js engine: hermes
 ERROR  Error: Got 'undefined' for the navigation state. You must pass a valid state object.

This error is located at:
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by ContextNavigator)
    in ContextNavigator (created by ExpoRoot)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by ExpoRoot)
    in RNGestureHandlerRootView (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by GestureHandler)
    in GestureHandler (created by ExpoRoot)
    in ExpoRoot (created by App)
    in App (created by withDevTools(App))
    in withDevTools(App) (created by ErrorOverlay)
    in ErrorToastContainer (created by ErrorOverlay)
    in ErrorOverlay
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent), js engine: Hermes

How to reproduce?

  1. install deps using yarn
  2. (needs Android device/emulator) yarn native
  3. Now you can Perform Signin. And, also you can perfom Signout

Environment

This error is related to my Android device only. It works fine in web

"@clerk/clerk-expo": "^0.19.1",

➜ node -v                    
v18.17.1

OS: Ubuntu 22.04

From SyncLinear.com | SDK-774

SDK-814

@jescalan jescalan changed the title [SDK-774] Errors when working with expo-router (related to LinkingConfiguration) [SDK-814] [SDK-774] Errors when working with expo-router (related to LinkingConfiguration) Oct 16, 2023
@clerk-cookie
Copy link
Collaborator

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@clerk clerk locked as resolved and limited conversation to collaborators Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants