1
votes

I am trying to create a new react-native project with Expo CLI Quickstart.

expo start --web command is promoting me the below error on macOS.

Cannot destructure property allowedHost of 'undefined' or 'null'.

I tried https://github.com/expo/expo/issues/5727#issuecomment-533895008 but in vain.

info React Native Environment Info: System: OS: macOS 10.14.6 CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz Memory: 599.95 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.16.3 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Xcode: /undefined - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.10 => 0.59.10 npmGlobalPackages: create-react-native-app: 2.0.2 react-native-cli: 2.0.1

1
Did you try with SDK 35?Oleg
Thanks Oleg ...I tried "expo": "35.0.0" and the error is still the same. Cannot destructure property allowedHost of 'undefined' or 'null'.Durga Prasad
look at the temporary solution of robinstraub : github.com/expo/expo/issues/5727Oleg
I tried this earlierDurga Prasad

1 Answers

0
votes

Check if you can update expo cli to version 3.1. The latest version.

 npm install -g expo-cli