expo start logs "{project name}/main.js: Cannot read property '1' of undefined"
See original GitHub issueEnvironment
Expo CLI 2.4.3 environment info: System: OS: macOS 10.14.1 Shell: 3.2.57 - /bin/bash Binaries: Node: 10.12.0 - /usr/local/bin/node Yarn: 1.10.1 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Android Studio: 3.2 AI-181.5540.7.32.5056338 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: expo: ^31.0.4 => 31.0.5 react: 16.5.0 => 16.5.0 react-native: https://github.com/expo/react-native/archive/sdk-31.0.1.tar.gz => 0.57.1 react-navigation: ^2.18.2 => 2.18.3 npmGlobalPackages: expo-cli: 2.4.3
Diagnostics report: https://exp-xde-diagnostics.s3.amazonaws.com/jorgefernandes-ece66803-af9c-4d6a-9045-82145c11be44.tar.gz
Steps to Reproduce
I just updated my ExpoSdk to v. 31.0.0 and the build looks ok. But when i run expo start my terminal logs “{project name}/main.js: Cannot read property ‘1’ of undefined”. I haven’t made any changes, just updated my SDK.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (2 by maintainers)

Top Related StackOverflow Question
I can feel your pain, having similar issue, In my case path is : PathToProject/node_modules/expo/AppEntry.js: Cannot read property ‘1’ of undefined
@shubhamdeol in my case it changed the error: main.js: Cannot read property ‘filename’ of undefined
i think this is related with .babelrc or something