node-server-screenshot icon indicating copy to clipboard operation
node-server-screenshot copied to clipboard

.finally is not a function

Open didintri196 opened this issue 6 years ago • 3 comments

/home/multectc/development/node/scrapper/node_modules/node-server-screenshot/index.js:104 .finally(function() { ^

TypeError: n.viewport(...).goto(...).wait(...).wait(...).screenshot(...).then(...).catch(...).finally is not a function at Object.module.exports.fromURL (/home/multectc/development/node/scrapper/node_modules/node-server-screenshot/index.js:104:11) at Object. (/home/multectc/development/node/scrapper/index.js:2:5) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3

didintri196 avatar Dec 05 '19 12:12 didintri196

Hi @didintri196 Thank you for your report! Unfortunately I cannot reproduce your crash

Can you please provide more details like node's version and/or if have overridden node's Promise lib with a custom 3rd party library?

legraphista avatar Dec 05 '19 15:12 legraphista

/home/multectc/development/node/scrapper/node_modules/node-server-screenshot/index.js:104 .finally(function() { ^

TypeError: n.viewport(...).goto(...).wait(...).wait(...).screenshot(...).then(...).catch(...).finally is not a function at Object.module.exports.fromURL (/home/multectc/development/node/scrapper/node_modules/node-server-screenshot/index.js:104:11) at Object. (/home/multectc/development/node/scrapper/index.js:2:5) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3

Just you have to update your nodejs to latest version and after will work.

adamcsk1 avatar Dec 11 '19 09:12 adamcsk1

my version node v12.13.1

didintri196 avatar Dec 12 '19 13:12 didintri196