Closed nikitalepikhin-ext54869 closed 2 months ago
Per docs, should import getCompareSnapshotsPlugin from 'cypress-image-diff-js/types/plugin';
not be
import getCompareSnapshotsPlugin from 'cypress-image-diff-js/plugin';
This issue is stale because it has been open for 30 days with no activity.
Even with import getCompareSnapshotsPlugin from 'cypress-image-diff-js/types/plugin';
there is an error
TS2307: Cannot find module 'cypress-image-diff-js/plugin' or its corresponding type declarations.
@vijaycapsifi As Timduffin suggested above, it should be:
import getCompareSnapshotsPlugin from 'cypress-image-diff-js/plugin';
Please refer to our documentation for further details
I have set cypress component tests up for a React TS application in a NX monorepo. The contents of the
cypress.config.ts
file are the following:Upon launching cypress tests, I am getting the following error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './types/plugin' is not defined by "exports" in /Users/myUsername/.../node_modules/cypress-image-diff-js/package.json
.These are the versions of packages from
package.json
:What could be causing this issue here? Thank you.