Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid directory /Users/node_modules/react-native-maps #15

Closed
afilp opened this issue Jan 18, 2016 · 4 comments
Closed

Invalid directory /Users/node_modules/react-native-maps #15

afilp opened this issue Jan 18, 2016 · 4 comments

Comments

@afilp
Copy link

afilp commented Jan 18, 2016

Hi I get this error when importing the library:

uncaught error Error: UnableToResolveError: Unable to resolve module react-native-maps from /[path]/index.ios.js: Invalid directory /Users/node_modules/react-native-maps

It appears that this is a common problem, do you have any remedy?
facebook/react-native#4968

@christopherdro
Copy link
Collaborator

@af7 Did you already try some of the suggested solutions?

  1. Delete the node_modules folder - rm -rf node_modules && npm install
  2. Reset packager cache - rm -fr $TMPDIR/react-* or node_modules/react-native/packager/packager.sh --reset-cache
  3. Clear watchman watches - watchman watch-del-all
  4. Restart Packager

@afilp
Copy link
Author

afilp commented Jan 18, 2016

Yes I did try all of them... I know that this is not related to your package exclusively and sorry for asking here too but I thought that maybe someone will have a better solution for this. Thanks for your feedback!

@lelandrichardson
Copy link
Collaborator

what version of node/npm are you using? I would try switching (if you're on 5, switch to 4... if you're on 4, switch to 5) and then running rm -rf node_modules && npm install again.

@lelandrichardson
Copy link
Collaborator

Closing, since issue not related to this library.

ryanbourneuk pushed a commit to 3sidedcube/react-native-maps that referenced this issue Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants