I have just migrated to a new workstation, and I’m having a hard time running my existing Expo projects, as well as creating brand new Expo projects using the expo-cli.
expo diagnostics produces the following output:
$ expo diagnostics [19:28:50] Generating diagnostics report... [19:28:50] You can join our slack here: https://slack.expo.io/. Expo CLI 2.2.3 environment info: System: OS: Linux 4.18 Ubuntu 18.10 (Cosmic Cuttlefish) Shell: 4.4.19 - /bin/bash Binaries: Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm IDEs: Android Studio: 3.2 AI-181.55220.127.116.1156338 npmPackages: expo: ^30.0.1 => 30.0.1 react: 16.3.1 => 16.3.1 react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => 0.55.4 react-navigation: ^2.16.0 => 2.16.0 npmGlobalPackages: expo-cli: 2.2.3
Trying to init a new Expo project, I run:
$ expo init testproject ... $ cd testproject/ $ expo start [18:40:45] Starting project at /mnt/storage/Projects/testproject [18:40:45] Expo DevTools is running at http://localhost:19002 [18:40:45] Opening DevTools in the browser... (press shift-d to disable) [18:40:48] Starting Metro Bundler on port 19001. [18:40:48] Metro Bundler ready. [18:40:48] Successfully ran `adb reverse`. Localhost URLs should work on the connected Android device. [18:40:50] Trying to open the project on Android... [18:40:50] Downloading latest version of Expo [18:40:50] Installing Expo on device [18:40:52] Opening on Android device
At this point, in my emulator, I see this screen:
Full stack trace:
The Expo SDK requires Expo to run. It appears the native Expo modules are unavailable and this code is not running on Expo. Visit https://docs.expo.io to learn more about developing an Expo project. <unknown> validate.js:11:8 loadModuleImplementation require.js:214:12 guardedLoadModule require.js:148:36 _require require.js:132:20 <unknown> Expo.js:2 loadModuleImplementation require.js:214:12 guardedLoadModule require.js:148:36 _require require.js:132:20 <unknown> AppEntry.js:1 loadModuleImplementation require.js:214:12 guardedLoadModule require.js:141:45 _require require.js:132:20 global code
Any ideas what might be wrong, and where to look for potential problems?