-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Imposible to debug on the new versions of RN 0.72.x #39080
Comments
|
Hi , you can try this solution in your
|
thank you @vksgautam1986 it worked only on ios. But this modification resulted in other issues with reanimated (and skia). I had to do a full clean of the project to be able to run it again software-mansion/react-native-reanimated#4673 |
Edit :
I am facing similar issues with debuggers. The issueWhen I clean install the debug build (connected with metro as well), and then press debug, it opens the chrome developer menu, and results the above error (but from react-native-mmkv in my case).
Tried so far
Environment
|
+1 We used react native debugger with HERMES turned on, had to add react-native-devsettings to make it working. The default HERMES debugger isn't as advanced. Can't use flipper due to long old battle of Firebase vs flipper issues. Also was reading this discussion regarding flipper and react native: https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0641-decoupling-flipper-from-react-native-core.md. Seems like since bumping to 0.72.7 and the packages, we have lost ability to even debug via the react-native-debugger :c |
RN devsettings doesn't seem to work with v0.73+, so we cant use react-native-debugger anymore, how are we supposed to debug, access the redux state etc... ? |
use this instead of flipper: |
I did, but the app crashes on startup with the saame error you posted in the initial post. and in the console: also, I dont think the experimental debugger allows us to see the redux state |
@Lakston it may be another 3rd party library that crashes your app. For me it was mmkv. I upgraded the framework to 0.73.x and removed that 3rd party library when debugging. For redux you can use redux-logger middleware. Not sure if Reactotron has been updated to use jsi buts its worth a shot if you like to mod your redux store |
Description
"Calling synchronous methods on native modules is not supported in Chrome" on the latest version 0.72.4. Debugging made impossible with the new versions of RN:
React Native Version
0.72.4
Output of
npx react-native info
Steps to reproduce
Create a new version of RN with Firebase
Snack, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: