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

Dependencies of modules in node_modules can't be loaded #11

Closed
jahewson opened this issue May 5, 2017 · 2 comments
Closed

Dependencies of modules in node_modules can't be loaded #11

jahewson opened this issue May 5, 2017 · 2 comments

Comments

@jahewson
Copy link

jahewson commented May 5, 2017

Motto is unable to load any module from node_modules which requires other modules in node_modules. So if I require('foo') and the foo module in turn will require('bar'), then motto fails saying that 'bar' cannot be found.

Motto seems to be searching for node_modules/foo/node_modules/bar, which is of course incorrect.

N.B. I don't think this is related to gh-10 as it this looks to be a bug in motto itself, while that issue is about missing/incorrect test data.

@kmanley
Copy link

kmanley commented Aug 18, 2017

I just tried motto for the first time and ran into this problem too.

@PaluMacil
Copy link

I think this was actually how modules were loaded in the version of Node around in 2014. I think it meant paths could get so deep that Windows wouldn't load things, and there were weird conflicts. That doesn't help now as much, but I think the answer is that this project is out of date and needs a maintainer that can redo the module resolution.

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