I recently tried to move my bare rn app to expo
But I m getting vague errors/warnings
WARN [AsyncStorage] Using object type for key is not supported. This can lead to unexpected behavior/errors. Use string instead.
Key passed: [object Object]
ERROR Error checking auth status: [Error: com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String]
WARN [AsyncStorage] Using object type for key is not supported. This can lead to unexpected behavior/errors. Use string instead.
Key passed: [object Object]
WARN The navigation state parsed from the URL contains routes not present in the root navigator. This usually means that the linking configuratio
n doesn't match the navigation structure. See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.
Is there a way for it to tell me exactly what line/file raises the problem?
app.json, I enabled sourceMaps too, which supposedly would improve the error handling for such cases
But still its extremely vague:
ERROR Error checking auth status: [ReferenceError: Property 'SecureStore' doesn't exist]
{
"expo": {
"name": "football-sim",
"slug": "football-sim",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"packagerOpts": {
"sourceExts": ["js", "json", "ts", "tsx", "jsx"],
"sourceMaps": true
},
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"expo-router",
"expo-secure-store"
],
"experiments": {
"typedRoutes": true
}
}
}