-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
React native release error #831
Comments
Do you have a more complete call stack and maybe a snippet of where this issue occurred? We had a similar issue at some point where Metro Bundler wasn’t able to strip out certain values and hoist them in a specific context #736 Edit: Also to do our due diligence here, can you check a quick |
Here is the info:
In terms of usage, I basically have a context that contains the provider
And the value is the memo-ed value shown on top.. This doesn't happen when initialising the client, but it does happen on this specific query that lives in a child context as well. Unfortunately I cannot really access more of the stack trace in production mode and it works fine in debug. I basically identified the problematic query after commenting and uncommenting most of the app |
All we'd really need is a stack of your output and the affected code (where the undefined issue is occurin), which you can still obtain: https://sportsbet.tech/demystifying-react-native-stack-traces-in-production-8f862da6f33 |
Ok, so the new error seems to be related to persisted fetch exchange.. Gonna remove that for now:
|
Removed that and apparently the old error is gone So probably #736 sorted that Thanks for the help 🥇 |
Ok, I can explain the |
I think I got overexcited and added the However, did add the options and the error is now |
@cipriancaba That's interesting! Looks like RN doesn't support the crypto APIs as we expected. We'll look into that. |
I would say so, yes.. I removed persistedFetchExchange and seems fine. Thanks for the help |
I've been debugging a @kitten Here is the output of some of the things you requested above:
(For the rich stack trace I'll need some time to set up the error handling as per the article you linked; will post it here once I have it.) Some more info:
import { dedupExchange } from 'urql';
import { multipartFetchExchange } from '@urql/exchange-multipart-fetch';
import cacheExchange from './cache'; // <- This is a `graph-cache`.
const exchanges = [dedupExchange, cacheExchange, multipartFetchExchange];
export default exchanges; Please let me know if there's any other piece of info that would be useful to help troubleshooting this. |
@olistic In some DMs I've been sent some stack traces and bundled & minified source code. What I know so far is that I'm trying to bundle |
@kitten I can confirm |
I've started using urql on a react-native project, that's implemented with Amplify.. All went pretty smooth, we have the types and hooks generated automatically, didn't ran into any major issues
However, when we create a release version of the app, we have these really weird errors (runs perfectly fine in debug mode) on iOS
I am going crazy over this and have tried different variations, different exchange version, but still failing. While I know that this information might be scarce it would be really helpful if you could maybe point me in the right direction for tracking this behaviour.
I've added the generated queries here https://gist.github.com/cipriancaba/1f543a10f3c53024746e70e51ba875d8
Much appreciated and thanks for the amazing work on the project
On the older version of urql this was the error:
On the latest version it's this
urql version & exchanges:
Steps to reproduce
Expected behaviour
Query runs fine
Actual behaviour
App crashes with limited info due to release optimisations
The text was updated successfully, but these errors were encountered: