anvaka / npmgraph.an

2d visualization of npm
https://npm.anvaka.com
MIT License
1.22k stars 83 forks source link

cannot convert null or undefined to object #33

Open alasdairhurst opened 4 years ago

alasdairhurst commented 4 years ago

Not sure exactly the dependency that caused this, but http://npm.anvaka.com/#!/view/2d/no-one-left-behind with this error after a while.

anvaka commented 4 years ago

Interesting, isn't no-one-left-behind is a toy package that depends on all other packages?

I wonder which of those thousand packages, causes npmgraph to report the error.

Also I doubt that SVG would be able to handle so many elements with decent performance, but that's secondary...

alasdairhurst commented 4 years ago

It's one of a few packages which try and do that yeah. Although you can only have 1000 dependencies when publishing to NPM so there's a huge amount left out. I was interested in how many transient dependencies it had so stuck it into here. It's just as likely one of those (more than 1000) transient dependencies caused it to error.

It was actually performing quite well until it crashed, surprisingly.

I'll try and get it set up locally and debug it.