-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
TypeError: Cannot read properties of undefined (reading 'default') #4042
Comments
This is most likely a problem with jest or your babel transformations. Could you run |
Are you trying to upgrade Detox from 19 to 20? |
Btw your jest config does not look compliant to Detox 20. Read the migration steps. If possible, avoid using react-native preset for Detox tests. |
@noomorph thanks for the tip. Yes, I tried to upgrade. I ran The app crashes during startup (in dev and production build). When I click on the build app in the simulator afterwards, it just opens up fine. So the crash is not related to the app itself (also, tests run before upgrading to 20).
Crash looks similar to #2706 , #3792 and #3521 It seems that the metro bundle is never executed, so it crashes. All I see is a white screen. The Metro server shows no logs or indication that code is executed. When I click on the app after the crash, it launches fine and produces logs. |
I updated Detox to 20.9.0 and still see the same error |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
The issue has been closed for inactivity. |
What happened?
Test that used to run (below version 20.0.0) do not run anymore.
What was the expected behaviour?
Run the test
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.7.2
React Native version: 0.71.6
Has Fabric (React Native's new rendering system) enabled: no
Node version: 16.17.0
Device model: iPhone 14
iOS version: 16.4
macOS version: 13.3.1
Xcode version: 14.3
Test-runner (select one): jest
Detox logs
Detox logs
Device logs
No response
More data, please!
.babelrc
./.e2e/config.json
The text was updated successfully, but these errors were encountered: