-
Notifications
You must be signed in to change notification settings - Fork 116
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
fix: handle early JS errors like in Metro #829
Conversation
🦋 Changeset detectedLatest commit: 93a4668 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
packages/repack/src/plugins/RepackTargetPlugin/implementation/init.ts
Outdated
Show resolved
Hide resolved
added some extra error handling for a rare scenario where there might be no |
thank you for the review @thymikee 🎉 |
Summary
Closes #621
Closes #794
This PR fixes the problem where early JS errors on iOS would result in a white screen without any meaningful information. Early JS errors are now visible on both platforms inside a LogBox window (parity with Metro).
For now caching of module errors is disabled (as we disable
strictErrorModuleHandling
in the Target Plugin) and we should handle this in the interceptor as well in the future.Separate PR should address formatting of the errors to match the presets here (or we could override the whole module and parse LogBoxLog ourselves)
Screenshots
Syntax error showing up in LogBox (although not being parsed correctly, see reason above):
Early JS errors visible on iOS
Test plan