anvaka / npmgraph.an

2d visualization of npm

Home Page:https://npm.anvaka.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error for 2d view

pocketjoso opened this issue · comments

Hi, thanks for this cool package, was recommended on dotJS conference yesterday.
I tried it for one of my projects, but got an error.
http://npm.anvaka.com/#/view/2d/penthouse

Error

{
  "message": "Cannot convert undefined or null to object"
}

screen shot 2016-12-06 at 09 41 50

Any ideas what this is about? A broken package.json somewhere in my dependency chain?

Let me know if there's any other info I can provide to help debug.
Thanks again!

Thanks for reporting this!

Looks like the root cause is in the https://github.com/anvaka/npmgraphbuilder

In your dependency graph penthouse package depends on git version of css package.

The npmgraphbuilder cannot handle git based dependencies, and does not traverse their dependencies.

Normally this would be fine, however in this graph, there is another package called apartment, that also depends on css package, this time regular npm dependency. I didn't expect such combination.

Will fix it in the npmgraphbuilder (likely within a week), unless someone wants to do the fix sooner.

Thanks for the quick response! Let me know if I can help.

Should be fixed now :).

Awesome, thanks!