xgfe / react-native-datepicker

react native datePicker component for both Android and IOS, useing DatePikcerAndroid, TimePickerAndroid and DatePickerIOS
MIT License
2.12k stars 726 forks source link

However, this package itself specifies a `main` module field that could not be resolved #325

Open avinashvalluru opened 5 years ago

avinashvalluru commented 5 years ago

Issue

bundling failed: Error: While trying to resolve module react-native-datepicker from file /home/avinash/morseteam/kinreadmin/src/components/Example.js, the package /home/avinash/morseteam/kinreadmin/node_modules/react-native-datepicker/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/home/avinash/morseteam/kinreadmin/node_modules/react-native-datepicker/datepicker.js. Indeed, none of these files exist:

Expected Behavior

Code

Environment

  1. react-native -v: 0.58.5
  2. node -v: 10.15.1
  3. npm -v:6.4.1
  4. yarn --version:
  5. target platform: Android | iOS
  6. operating system: ubuntu 16.04
saadsaleem187 commented 5 years ago

@avinashvalluru I am facing same issue. I don't how to solve it. My react-native -v 0.59.5