Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when try CreateDiff #56

Open
maximkoev opened this issue Jun 3, 2019 · 0 comments
Open

error when try CreateDiff #56

maximkoev opened this issue Jun 3, 2019 · 0 comments

Comments

@maximkoev
Copy link

when I run follow code
const looksSame = require('looks-same');

function diff (){
looksSame.createDiff({
reference: './reference.png',
current:'./current.png',
diff: './diff.png',
highlightColor: '#ff00ff', // color to highlight the differences
strict: false, // strict comparsion
tolerance: 2.5,
antialiasingTolerance: 0,
ignoreAntialiasing: true, // ignore antialising by default
ignoreCaret: true // ignore caret by default
}, (error, {equal}) => {
console.log("func block");
console.log(error.name, error.message);
});}

diff();

get an error:

TypeError: Cannot destructure property first of 'undefined' or 'null'.

Could u guys describe me what's going on? Is there issue in my code?

Thank you :)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant