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

Common js: certain dependencies not registering #24

Closed
tnrich opened this issue Jul 3, 2015 · 3 comments
Closed

Common js: certain dependencies not registering #24

tnrich opened this issue Jul 3, 2015 · 3 comments

Comments

@tnrich
Copy link

tnrich commented Jul 3, 2015

Hey there,

I've got an app I'd like to see the dependency tree for. The 'entry point' file is named App.js and the top of App.js looks like:

var React = require('react');
var Router = require('react-router'); // or var Router = ReactRouter; in browsers
var Route = Router.Route;
var RouteHandler = Router.RouteHandler;
var Link = Router.Link;

var Dashboard = require('./Dashboard.js');
var SequenceEditor = require('./SequenceEditor.js');
var Skeleton = require('./Skeleton.js');
etc.

Unfortunately, none of the dependencies are showing up for app.
I've run:

dependo -f cjs ./app/App.js > report.html

With no success:
image

And:
dependo -f cjs ./app > report.html

with some success:
image

I can't tell if there is a pattern of which require() statements it is picking up on and which it isn't. It seems a bit random to me: certain require statements get picked up in some files, but don't in others. Any help debugging this would be greatly appreciated. Thanks so much!

@auchenberg
Copy link
Owner

I'm currently in the airport with limited connectivity. Can you try run https://github.com/pahen/madge and see if all your dependencies are detected? Dependo is build on top of Madge.

@tnrich
Copy link
Author

tnrich commented Jul 3, 2015

I ran it and am getting the same results. Guess I'll ask my issue on Madge
in that case.
On Jul 3, 2015 7:55 AM, "Kenneth Auchenberg" notifications@github.com
wrote:

I'm currently in the airport with limited connectivity. Can you try run
https://github.com/pahen/madge and see if all your dependencies are
detected? Dependo is build on top of Madge.


Reply to this email directly or view it on GitHub
#24 (comment).

@auchenberg
Copy link
Owner

Yeah, it sounds like an issue in madge then. Closing it it here then. Anyways, thanks for reporting it, and thanks for using dependo :)

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

2 participants