haim-io / cypress-image-diff

Visual regression test with cypress
MIT License
251 stars 62 forks source link

Getting "Unable to resolve path to module 'cypress-image-diff-js/command'" and similarly for 'cypress-image-diff-js/plugin #223

Closed mmacarth closed 3 weeks ago

mmacarth commented 3 months ago

I upgraded from v1 to v2 and changed the import paths as suggested. I'm able to successfully run cypress and generate screenshots but am getting an eslint and/or typescript error. See screenshot from commands.ts: image

I can remove the error by adding // eslint-disable-next-line import/no-unresolved but wonder if there's a cleaner method.

I get the same issue in cypress.config.ts for import getCompareSnapshotsPlugin' from cypress-image-diff-js/plugin'

I'm looking forward to use the new diff tool!

Thank you.

kien-ht commented 2 months ago

Hi @mmacarth , could you share your eslint, ts config and package.json please? At the same time, please refer to these examples, see if you encounter the same problem

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been inactive for 30 days since being marked as stale.