8000 error when try CreateDiff · Issue #56 · gemini-testing/looks-same · GitHub
[go: up one dir, main page]

Skip to content

error when try CreateDiff #56

Open

Description

@maximkoev

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0