facebookarchive / react-native-custom-components

Breaking apart the Libraries/CustomComponents part of the React Native repo
Other
70 stars 157 forks source link

unable to resolve module #13

Open Villar74 opened 7 years ago

Villar74 commented 7 years ago

Here i have installed components

dependecies:{
    "react": "^16.0.0-alpha.12",
    "react-native": "0.46.4",
    "react-native-deprecated-custom-components": "^0.1.1",
...
}

and packager shows me

error: bundling failed: "Unable to resolve module Navigator from /home/makswork/is74/lkapp_new/ReactApp/components/CityPayBackButton.js: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: watchman watch-del-all.\n 2. Delete the node_modules folder: rm -rf node_modules && npm install.\n 3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache."

I fix problems with PropTypes Why does this happened?

NonkelDaniel commented 7 years ago

I am also having this issue after using react-native-git-upgrade to update to 0.46.4.

Villar74 commented 7 years ago

@NonkelDaniel I fixed it just add var Navigator = require('react-native-deprecated-custom-components');