pkg
pkg copied to clipboard
Can't open '/snapshot/pkg/node_modules/screenshot-stream/stream.js'
Used sample code from screenshot-stream
const fs = require('fs')
const screenshot = require('screenshot-stream');
const stream = screenshot('http://google.com', '900x180', {crop: true});
stream.pipe( fs.createWriteStream('google.png') );
runing node index.js works fine
using [email protected]
when running binary throws:
events.js:183
throw er; // Unhandled 'error' event
^
Error: Can't open '/snapshot/pkg/node_modules/screenshot-stream/stream.js'
at LineStream.module.exports.byline.on.data (/snapshot/pkg/node_modules/screenshot-stream/index.js:77:16)
at emitOne (events.js:116:13)
at LineStream.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at LineStream.Readable.push (_stream_readable.js:208:10)
at LineStream.Transform.push (_stream_transform.js:147:32)
at LineStream._pushBuffer (/snapshot/pkg/node_modules/byline/lib/byline.js:125:17)
at LineStream._transform (/snapshot/pkg/node_modules/byline/lib/byline.js:116:8)
at LineStream.Transform._read (_stream_transform.js:186:10)
This issue is pretty old with no reproduction repo. If this issue still persists feel free to open a new issue with a reproduction repo!