FuYaoDe / react-native-app-intro

react-native-app-intro is a react native component implementing a parallax effect welcome page using base on react-native-swiper , similar to the one found in Google's app like Sheet, Drive, Docs...
MIT License
3.24k stars 508 forks source link

Unable to reslove module react-native-app-intro #120

Open sakibrahmanchy opened 6 years ago

sakibrahmanchy commented 6 years ago

Each time I add a new library to my project I always get the error, "Unable to reslove module react-native-app-intro", I have to delete the node_modules folder and run 'npm install' command to fix the problem. Pretty painful. Is it a bug?

exit99 commented 6 years ago

I have the same issue

error: bundling failed: Error: While trying to resolve module `react-native-app-intro` from file `/Users/zachk/WebstormProjects/unitedcoin/App/Containers/IntroScreen.js`, the package `/Users/zachk/WebstormProjects/unitedcoin/node_modules/react-native-app-intro/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/zachk/WebstormProjects/unitedcoin/node_modules/react-native-app-intro/AppIntro.js`. Indeed, none of these files exist:

  * `/Users/zachk/WebstormProjects/unitedcoin/node_modules/react-native-app-intro/AppIntro.js(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
  * `/Users/zachk/WebstormProjects/unitedcoin/node_modules/react-native-app-intro/AppIntro.js/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
exit99 commented 6 years ago

Iniitial comments fix does not fix on my machine.