-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
"Unhandled JS Exception: t is not a function. (In 't(c)', 't' is false)" on Production bundle #26489
Comments
@DanielDanaee thank you for reporting! You could try running a debug build and in the start of index.js setting DEV to false; that way you have a debug build but it is running your release code without obfuscation/minification which should give you a more useful stack trace. I'm closing this issue here because we're using this issue tracker to find bugs in React Native and I'm fairly confident that your issue describes a bug in your app. Feel free to add more comments here and I'll try to think with you on the problem. |
@bartolkaruza Thank you very much for your feedback and help. I was able to set the DEV to false and run the app as debug and came this error: This is my babel config that i have set after that but the error still persists:
|
Any updates on this? |
So i figured out that was with redux and there a null value in the applyMiddleware function https://github.com/LogRocket/redux-logger#log-only-in-development |
Great! I'm happy you were able to resolve this yourself. |
Hello! Please give me a code, where you set DEV to false. I can't find it in index.js |
you saved my day! |
In my case I was trying to I was able to troubleshoot by building a development build onto an Android device. Then disabling DEV mode in the shake menu. |
React Native version: 0.58.3
When building the release bundle, on both platforms, the app crashes on launch or gets stuck on the black screen on iOS.
But on the Dev Mode everything runs smoothly.
Log:
I think it has something to do with the
__DEV__
constant, as im using it through out the code to decided between environments and allThe text was updated successfully, but these errors were encountered: