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

v0.8.0-rc.2 cannot resolve symbolic linked modules #2076

Closed
xinthink opened this issue Jul 21, 2015 · 1 comment
Closed

v0.8.0-rc.2 cannot resolve symbolic linked modules #2076

xinthink opened this issue Jul 21, 2015 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@xinthink
Copy link
Contributor

Hi,
I'm using npm link command to test my custom native component (in a demo app, it's opensource too), before it can be published to npm.

It worked fine with v0.7.1 and the previous. But v0.8.0-rc.2 complaints Unable to resolve module XXX, thrown at require.js:249

It seems the problem is that npm link results in symbolic link, for example:

my_app
   |-- node_modules
          |-- react-native 
          |-- my-module -> ~/.npm/my-module (another symbolic link pointing to my local module)

However, it does work if I copy all the files to node_modules/my-module, but I don't think it's a good solution.

I'd appreciate that it could be fixed when 0.8 is finally released.

@brentvatne
Copy link
Collaborator

Hi there! Thanks for letting us know that it's not working for you in 0.8.0, I pointed that out in #637 where this problem is being tracked - I hope we can get a fix in for 0.8 but realistically that might not happen unless someone from the community lends @amasad a hand. If you want to investigate a fix it would be much appreciated!

@facebook facebook locked as resolved and limited conversation to collaborators Jul 22, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants