[SOLVED] Cannot find module 'expo/tools/LogReporter'

I’ve updated to expo-cli 2.6.8 on my project and I can’t run “expo start” anymore, as I have this error message :

expo start
[17:33:07] Starting project at /Users/laurent/Work/....
[17:33:07] Expo DevTools is running at http://localhost:19002
[17:33:07] Opening DevTools in the browser... (press shift-d to disable)
[17:33:10] Cannot find module 'expo/tools/LogReporter'
[17:33:10] Set EXPO_DEBUG=true in your env to view the stack trace.

EXPO_DEBUG=true doesn’ t give much more information.

[17:52:38] Error: Cannot find module 'expo/tools/LogReporter'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.resolve (internal/module.js:18:19)
    at Object.resolveModule (/xdl@52.0.8/src/project/ProjectUtils.js:137:18)
    at /xdl@52.0.8/src/Project.js:1489:41
    at Generator.next (<anonymous>)
    at step (/usr/local/lib/node_modules/expo-cli/node_modules/xdl/build/Project.js:2211:191)
    at /usr/local/lib/node_modules/expo-cli/node_modules/xdl/build/Project.js:2211:361
    at <anonymous>

Of course I made before : yarn install, I can check that node_modules/expo/tools/LogReporter is present here.
I’ve started with a fresh new project (expo init with tabs template) -> same behaviour

I’ve already seen this : https://stackoverflow.com/questions/49151286/expo-cannot-find-a-module-logreporter?rq=1

cd .expo/
pc162:.expo laurent$ ls
packager-info.json	settings.json
pc162:.expo laurent$ more packager-info.json 
  "devToolsPort": 19002,
  "expoServerPort": 19000
pc162:.expo laurent$ more settings.json 
  "hostType": "lan",
  "lanType": "ip",
  "dev": true,
  "minify": false,
  "urlRandomness": null

and package.json (generated by expo init) is

  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject",
    "test": "node ./node_modules/jest/bin/jest.js --watchAll"
  "jest": {
    "preset": "jest-expo"
  "dependencies": {
    "@expo/samples": "2.1.1",
    "expo": "^31.0.2",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
    "react-navigation": "^2.18.2"
  "devDependencies": {
    "babel-preset-expo": "^5.0.0",
    "jest-expo": "^31.0.0"
  "private": true

same behaviour if I remove yarn.lock and use npm install

I can see that project/ProjectUtils.js was changed 5 days ago by https://github.com/expo/expo-cli/pull/140

issue opened : https://github.com/expo/expo-cli/issues/247

WORDAROUND : rollback to expo-cli 2.4.3

Hey @lc3t35,

Thanks for reporting this! If you haven’t seen already from the github issue you linked, this has been fixed in the latest version of the expo-cli (which at the time of me writing this is 2.6.11)



1 Like

Thank you Adam

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.