We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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'.
first
Could u guys describe me what's going on? Is there issue in my code?
Thank you :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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 :)
The text was updated successfully, but these errors were encountered: