-
Notifications
You must be signed in to change notification settings - Fork 24.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
RN 0.76 Regression - jsi::JSError is not visually visible to the end user #47215
Comments
This issue uses NitroModules and the error is thrown when the ReactInstance calls I would like to have a reproducer with a vanilla React Native, with no NitroModules and a simple C++ module, to be able to understand better what's going on. (They also don't build on Android...) |
Sorry, it was just easier to add my code rather than create it from scratch. I'm experiencing the same behavior with Turbo Modules. Pushed new commit: https://github.com/jpudysz/rn-0.76-jsi-reproducer Result: |
Thanks for updating the reproducer! I can verify that if the error happens early, it is not bubbled to the redbox. I believe that this is because when we throw the error too early, there is no error pipeline ready to catch it. QQ: when you were trying in 0.75, were you on the new or on the old architecture? |
Updated RN 0.75.4 repro with the same code: https://github.com/jpudysz/rn-0.75-jsi-reproducer |
I can confirm it works as expected! 👏 |
We will ship this in 0.76.2. I already created the pick request. Do we want to close the issue, meanwhile? |
If you ask me, It should be closed as soon as #47287 is merged |
Closing as the PR is merged 👍 |
Description
I began developing a new version of
react-native-unistyles
as soon as the RC for 0.75 was released. During this time, I added a lot of JSI code that has been tested dozens of times.Yesterday, I upgraded my example project from RN 0.75.4 to 0.76.0 and noticed that
jsi::JSError
is no longer propagated to the Xcode console or shown as a red screen to the user.I have no information on Android since I haven't created bindings for it yet.
I prepared two reproducers with minimal code, along with screenshots showing results for RN 0.75.4 and 0.76.
Steps to reproduce
jsi::JSError
For my 0.76 reproducer:
Pods/Development Pods/Unistyles/cxx/hybridObjects/HybridStyleSheet.cpp
jsi::JSError
is thrownHere is my 0.75.4 reproducer, where everything works fine:
https://github.com/jpudysz/rn-0.75-jsi-reproducer
React Native Version
0.76.0
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/jpudysz/rn-0.76-jsi-reproducer
Screenshots and Videos
RN 0.75.4
RN 0.76.0
The text was updated successfully, but these errors were encountered: