stephy / CalendarPicker

CalendarPicker Component for React Native
792 stars 369 forks source link

Module `moment` does not exist in the Haste module map #134

Closed wolfjobs closed 5 years ago

wolfjobs commented 5 years ago

Error: Unable to resolve modulemomentfrom${rootProject}/node_modules/react-native-calendar-picker/CalendarPicker/index.js: Modulemomentdoes not exist in the Haste module map

"react": "^16.5.0", "react-native": "^0.57.0", "react-native-calendar-picker": "^5.22.0",

peacechen commented 5 years ago

Moment is a peer dependency, which means you need to place it in your app's package.json. It should have printed a warning that the peer dependency was not met when you ran npm install.