pkg icon indicating copy to clipboard operation
pkg copied to clipboard

Can't open '/snapshot/pkg/node_modules/screenshot-stream/stream.js'

Open estebanpanelli opened this issue 8 years ago • 1 comments

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)

estebanpanelli avatar Oct 01 '18 15:10 estebanpanelli

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!

hipstersmoothie avatar Mar 24 '21 23:03 hipstersmoothie