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?
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With