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:
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 amain
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
react-native -v
: 0.58.5node -v
: 10.15.1npm -v
:6.4.1yarn --version
:target platform
: Android | iOSoperating system
: ubuntu 16.04