-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
[0.74-rc.5] Modal
component failed to render in runtime (iOS simu & Android emu) & tests (Test Renderer)
#43678
Comments
Modal
component failed to render in tests (under React Test Renderer)Modal
component failed to render in runtime (iOS simu & Android emu) & tests (Test Renderer)
I've located the nightly that broke that code (at least under Test Renderer):
|
Thanks for reporting this, looking into this now. The error
Can be fixed by updating Will publish a small PR to fix the second error tomorrow:
|
Summary: # Changelog: [Internal] Fixes facebook#43678. The issue is that once `getInspectorDataForViewAtPoint` is imported, it should throw if RDT global hook was not injected. ReactDevTools overlay imports `getInspectorDataForViewAtPoint`, this is why it did throw in testing environment. ReactDevToolsOverlay JSX-element is already gated with RDT global hook check, adding a deferred import, same as it was already implemented for Inspector. Still unclear to me how this didn't throw all this time while using the Catalyst / RNTester. Differential Revision: D55474774
Summary: Pull Request resolved: #43690 # Changelog: [Internal] Fixes #43678. The issue is that once `getInspectorDataForViewAtPoint` is imported, it should throw if RDT global hook was not injected. ReactDevTools overlay imports `getInspectorDataForViewAtPoint`, this is why it did throw in testing environment. ReactDevToolsOverlay JSX-element is already gated with RDT global hook check, adding a deferred import, same as it was already implemented for Inspector. Still unclear to me how this didn't throw all this time while using the Catalyst / RNTester. Reviewed By: cortinico Differential Revision: D55474774 fbshipit-source-id: 759e5e8227cc7534193e5b95616b6099c15f5cb5
@hoxyq I've tried to match ![]()
{
//...
"dependencies": {
"@expo/metro-runtime": "~3.1.3",
"@react-native/babel-preset": "0.74.1",
"@react-navigation/native": "^6.1.17",
"@tamagui/config": "^1.96.0",
"@tamagui/lucide-icons": "^1.96.0",
"@tamagui/metro-plugin": "^1.96.0",
"babel-preset-expo": "^10.0.2",
"expo": "50.0.17",
"expo-font": "~11.10.3",
"expo-linking": "~6.2.2",
"expo-router": "3.4.8",
"expo-splash-screen": "0.26.4",
"expo-status-bar": "~1.11.1",
"expo-system-ui": "~2.9.4",
"expo-web-browser": "~12.8.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-helmet-async": "~2.0.4",
"react-native": "0.74.1",
"react-native-reanimated": "~3.10.0",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "~3.31.1",
"react-native-web": "^0.19.11",
"tamagui": "^1.96.0",
"typescript": "^5.4.5"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@types/react": "~18.3.1"
},
"packageManager": "yarn@4.0.2"
} |
I was still getting this error as well. Running |
Looks like some other third-party package depends on a different minor version of Something like
should work |
I followed all the instructions on above but nothing worked. I was constantly seeing:
To get me back on my feet while the team fix the breaking change I modilfed the file node_modules/react-native/src/private/specs/components/DebuggingOverlayNativeComponent.js and commented out the blocks of code that refer to the problematic methods, firstly comment out all lines in the This may not be the best thing to do especially if you rely on these methods but I wasted 3 hours getting this working and was getting desperate. Like I say, this may get you up and running again until the breaking change is fixed. |
I have the same problems. |
I did this and was able to get things running again, but I wonder if the app still work on production cause I need to submit the app in the next few weeks |
Is there an estimation about when this issue is fixed? I upgraded to |
The version 0.74 was shipped without this error, so it is fixed. Option 1:If you are using Option 2:Some other third-party package depends on a different minor version of Something like
should work |
Description
When rendering
Modal
component exported fromreact-native
package, it fails to render both in runtime on iOS and Android, as well as in test under React Test Renderer (here it was detected). The issue occurs under RN 0.74-rc.5 but it worked fine RN 0.73.x and earlier.I've located the nightly that broke that code (at least under Test Renderer):
Even basic test using
Modal
fails:Error:
In some other circumstances in can also fail with following message:
Steps to reproduce
yarn install
yarn test
React Native Version
0.74.0-rc.5
Affected Platforms
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/mdjastrzebski/rn-74-modal-repro
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: