-
Notifications
You must be signed in to change notification settings - Fork 28
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
App crashes on splash screen #19
Comments
sorry i was not doing good for the error message, could you help to troubleshoot at your node_modules/expo/build/devtools/index.js to dump the error and its stack
in the catch section, trying to |
Will do it when I get home @Kudo, In addition to that, Should we replace the |
thanks. welcome for the contribution. let's see what's the error first. try {
const client = await getDevToolsPluginClientAsync(pluginName);
setClient(client);
} catch (e) {
e.message = 'Failed to setup client from useDevToolsPluginClient: ' + e.message;
setError(e);
} |
My goto for errors is usually: String(error) as JSON.stringify can throw depending on the object it gets, calling |
the downside of |
Well, there is |
that's why i'd tried for |
I am back. But I couldn't get the error message content. Editing the file under And this error doesn't exist in the local development environment ( 1 - I will fork this repository, edit that file, and add my fork as a dependency instead of this one. What do you suggest ? |
I didn't know that
But |
good to know it's using |
I think this is the error message:
But I am not sure 100%. Does this make any sense in this context ? If not I can keep digging. @Kudo |
looks strange to me, having no idea how it comes from. could you try to dump to stack trace? |
Sorry for the limited feedback. It is hard to work with |
no worries! after you generate builds from eas build, you may try to modify node_modules/expo locally before running |
OK. I was not able to reproduce this on compiled apps. Once a new version is released that fixes that error logging, I will try that again. I will create a separate issue for that. (or maybe a PR ?) Btw, if the error is something like |
You just have to be careful using JSON.stringify because if it throws you will mask the initial error completely. What I usually do (more complex) is use a try catch to prefer JSON.stringify and fallback to String |
Yes, that's also what I thought. try/catch for JSON stringify and String makes sense. That's also what I used for encoding/decoding scalars for GraphQL. |
Im have the same error but only in my production build, when i build the same commit to development it runs ok |
I also don't get this in development, but release builds hang after the splash screen hides -- looks to be during the initial render. I was able to log the error with
|
I'm using this patch as a workaround. I'm not sure that throwing from the hook is the best way to handle errors in this case. Obviously, we should understand what is the root cause of the error and fix that, but I'm thinking there also might be a better way to handle the errors, since this implementation breaks the app entirely.
|
Also seeing a similar issue using drizzle dev tools: drizzle-team/drizzle-studio-expo#1 |
@osamaqarem thanks for saving my day 👍
|
@osamaqarem thanks a lot I had this issue for week now it gone after remove useDrizzleStudio() |
Thank you 😭 |
I had similar issue and I solved using variable
|
Using the
|
Thanks for the great work for Expo 50.
I enabled the DevTools plugin for
react-navigation
in myindex.tsx
file:The app works fine with the dev server locally. But When I build it and try the development build (
apk file
on my device or emulator), the app hangs at the Splash screen. And this is theadb log
from the console:Versions
expo
: 50.0.2react-navigation/native
: 6.1.9react-navigation/stack
: 6.3.20react-navigation/drawer
: 6.6.6Not sure if this is related to this plugin or react-router. Thanks.
The text was updated successfully, but these errors were encountered: