-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
debuggerWorker.js:69 TypeError: Cannot convert undefined or null to object #6432
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hey! Could you pleas provide more information? Did you use the new (experimental) react native debugger, chrome debugger or some other debugging tool? Can you provide a repro or share the repository? |
i user react native debugger https://github.com/jhen0409/react-native-debugger because it support debug request network. |
Thank you for response. I can reproduce the issue while I am debugging JS remotely with From the
I will look into this issue and check it we can do something. |
## Summary The problem was reported in [this](#6432) issue and [this](#6359) discussion seems to report the same problem. In short, the crash was caused by incorrect check in `_getViewInfo` in `createAnimatedComponent` which assigned the `_component` to the `viewTag` only for web but not for chrome debugger. I replaced `IS_WEB` check with `shouldBeUseWeb`, which also checks whether the current environment is a chrome debugger. ## Test plan - I created a bare app with `npx @react-native-community/cli init ReactNativeDebugger --version 0.75.1` - Installed latest reanimated and downloaded [react-native-debugger](https://github.com/jhen0409/react-native-debugger?tab=readme-ov-file) mentioned in [this](#6432) issue - Launched `react-native-debugger` and enabled remote debugging with js, - When I tried to animate component with animated style, I saw the reported crash
@TonyFTannous-Byd Could you check if changes I made in the #6437 PR fix your issue? You can make the same changes in If you still have some problems, don't hesitate to re-open the issue and ask. |
Hi @MatiPl01, I tried the fix that you have created and merge in this PR 6437 This issue of But now when I connected with debugger my Tab navigation is not working |
Hey @abdulmoizshaikh! Would you be able to share your code or a small repro showing the issue? Not everything will work while you use remote JS debugging but I will check what we can do if you share some code. |
hey @MatiPl01 |
Hey @TonyFTannous-Byd! Yes, it was merged. If you still encounter this problem, can you please open a new issue and describe it more in detail (I mean, include some repro or code snippet that causes this error)? |
Description
Steps to reproduce
i use react native 0.75.1, when launching react native debugger, this error displayed and the app crashed
Snack or a link to a repository
https://github.com/software-mansion/react-native-reanimated
Reanimated version
^3.15.0
React Native version
0.75.1
Platforms
Android, iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: