Error deploying demo app


#1

I am just trying to get the demo app running in the XDE with Genymotion. It returns an error:

(node:6156) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1257): UnableToResolveError: Unable to resolve module @expo/vector-icons/glyphmaps/Entypo.json from C:\react\horseland1\node_modules\@expo\vector-icons\Entypo.js: Module does not exist in the module map or in these directories:
** C:\react\horseland1\node_modules@expo\vector-icons\glyphmaps**

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
** 1. Clear watchman watches: watchman watch-del-all.**
** 2. Delete the node_modules folder: rm -rf node_modules && npm install.**
** 3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start --reset-cache.**

If you go to the github page referenced a user says to try “you have to use
import { Components } from ‘expo’;
instead of
import { Components } from ‘exponent’; as stated in their docs.” I am not sure where this command would be used in the XDE.

Any idea?


#2

BTW, I tried using the new React Native functionality with Expo (Create React Native App) and built and app using that approach. It also generates the same error. It can’t find an icon …

7:52:50 PM: (node:9416) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1289): UnableToReso
lveError: Unable to resolve module @expo/vector-icons/glyphmaps/Entypo.json from C:\react\my-project\node_modules\@ex po\vector-icons\Entypo.js: Module does not exist in the module map or in these directories:
C:\react\my-project\node_modules@expo\vector-icons\node_modules@expo\vector-icons\glyphmaps
, C:\react\my-project\node_modules@expo\vector-icons\glyphmaps

BTW, the files mention in the error message are all in the directory


#3

Discussion happening on GitHub issues here: https://github.com/react-community/create-react-native-app/issues/110