cytoscape / cytosnap

A Node.js package that renders images of Cytoscape.js graphs on the server using Puppeteer
MIT License
58 stars 11 forks source link

ENOENT: no such file or directory, open './phantom/index.pack.js' #13

Closed n-kort closed 7 years ago

n-kort commented 7 years ago

Hey, getting this error as soon as I run snap.shot(). Any ideas?

maxkfranz commented 7 years ago

Maybe the ref in the index.html is wrong? Does it work if you change the ref from index.pack.js to index.js? (I can't try this out until 28 Oct as I'm away)

n-kort commented 7 years ago

Gave that a try already.. seems to be index.js#L42 in particular though.

n-kort commented 7 years ago

Hmm, using path.join(__dirname, '/phantom/index.pack.js') fixes this particular error, but then I just get info: ReferenceError: Can't find variable: cy instead. Not really sure where that's even being thrown though.

maxkfranz commented 7 years ago

Pushed a change that looks like it fixes it (published as 1.1.1). Let me know if it works for you

n-kort commented 7 years ago

Great, that does seem to have done it!