marcdacz / compare-pdf

Standalone node module that compares pdfs
MIT License
62 stars 21 forks source link

Error when ran from within Cypress #16

Closed tsposato closed 2 years ago

tsposato commented 2 years ago

I followed the Cypress example exactly and I run into the following issue. I'm simply trying to compare 2 PDF's (the same files during the test). Sample code is exactly the same. I'm running: node v14.16.1 npm 6.14.12

Same error on Windows 10 and on Ubuntu 20.10 whether I use headed or headless modes.

image

marcdacz commented 2 years ago

based on the error message you need to have Node v9.2+ can you try upgrading your node version and see how it goes?

tsposato commented 2 years ago

based on the error message you need to have Node v9.2+ can you try upgrading your node version and see how it goes?

I'm using node v14.16.1.

humphreyn commented 2 years ago

Hi @tsposato, I am using Node v14 as well but I do not get that error message.

Could you do two things: Add the following piece of code prior to any "require ..." in your code:

console.log("versions: ", process.versions);

Then please forward on output of the console.log and also a full stack trace

marcdacz commented 2 years ago

Thanks for raising this issue @tsposato. However, I am closing this issue as we did not receive any more updates since @humphreyn++++ asked his question.