question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

expo start logs "{project name}/main.js: Cannot read property '1' of undefined"

See original GitHub issue

Environment

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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
shubhamdeolcommented, Nov 28, 2018

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

1reaction
jorgefernandescommented, Nov 28, 2018

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo DevTools TypeError: Cannot read property 'compile' of ...
This issue has now been solved. They just published expo-cli@2.4.1 and uninstalling and reinstalling makes it work:
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
How to Avoid the Infamous "Cannot read properties of ... - Bitovi
As a JavaScript developer, I'm sure you've encountered the frustrating runtime TypeError Cannot read properties of undefined .
Read more >
typeerror: cannot read properties of undefined (reading ... - You.com
Try this first: In your project root, run npm install . Maybe someone else on your project has changed/added a dependency, and pulling...
Read more >
How to Read React Errors (fix 'Cannot read property of ...
Got an error like this in your React component? Cannot read property `map` of undefined. In this post we'll talk about how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found