Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo DevTools TypeError: Cannot read property 'compile' of undefined

I cannot get the Expo DevTools to work. My approach:

npm install -g expo-cli
expo init
cd PROJECTNAME
expo start

I just get this error message in the console:

TypeError: Cannot read property 'compile' of undefined

And this one in the DevTools in the browser:

Expo Developer Tools is disconnected from Expo CLI. Use the expo start command to start the CLI again.

Does anyone know what Iam missing here?

like image 659
FBa Avatar asked Nov 25 '18 21:11

FBa


2 Answers

This issue has now been solved. They just published [email protected] and uninstalling and reinstalling makes it work:

npm uninstall -g expo-cli && npm i -g expo-cli

The issue was with a dependency of expo-cli 'joi' that was updated and broke stuff.

For more info: https://github.com/expo/expo-cli/issues/213

like image 172
Lenny Linus Avatar answered Nov 17 '22 19:11

Lenny Linus


You aren't missing anything here - there appears to be a problem with this version of expo-cli.

The github thread shared in the comments has more information and a possible workaround. https://github.com/expo/expo-cli/issues/213

If the workaround doesn't work for you, I would suggest using react-native-cli or simply waiting a day or two until the expo team fix this issue.

like image 43
jmknoll Avatar answered Nov 17 '22 18:11

jmknoll