stephy / CalendarPicker

CalendarPicker Component for React Native
792 stars 369 forks source link

ambiguous resolution: module `../index.js` tries to require `react-native`, but there are several files providing this module #93

Closed afshinm closed 6 years ago

afshinm commented 6 years ago

I don't think this issue is limited to this project but I'm receiving following error after npm start:

error: bundling failed: ambiguous resolution: module ../index.js tries to require react-native, but there are several files providing this module. You can delete or fix them:

uname -a: Darwin Afshin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64 NPM: v4.1.2 react-native-cli: 2.0.1 react-native: 0.49.5

I have tried npm start -- --reset-cache as well as yarn. It didn't work for me. Any idea why?

afshinm commented 6 years ago

Ah, seems like someone else has already solved the issue. See: https://github.com/stephy/CalendarPicker/issues/85

mahendrathotakura commented 5 years ago

how did you fixed this issue?