Comments (8)
This looks like "exports" field is not properly parsed by Webpack. What Webpack version are you using now?
I run pass after upgrade cypress from 12.9.0 to version 13.0.0 I think cypress-image-diff-js v2.1.2 not compatible with cypress version 12.9.0
Thank you for your feedback. This actually helps me find out the root of the problem. This is indeed the problem with exports
field in package.json
not regconised by Webpack 4 and older.
Cypress uses Webpack under the hood for bundling JavaScript. As I was looking through the Cypress release notes, I found out that Cypress v12.17.4 has upgraded Webpack from v4 to 5, and that if you use Cypress v12.17.4 and newer, you wouldn't encounter this problem.
To have better backward compatibility support, I created a pull request for this. We can close this issue for now, although we can leave it open for a while to ensure we have it right this time.
from cypress-image-diff.
This looks like "exports" field is not properly parsed by Webpack. What Webpack version are you using now?
I run pass after upgrade cypress from 12.9.0 to version 13.0.0
I think cypress-image-diff-js v2.1.2 not compatible with cypress version 12.9.0
from cypress-image-diff.
🎉 This issue has been resolved in version 2.1.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
from cypress-image-diff.
Hi, can you provide more detail context around your settings such as package.json, node version and project structure please?
from cypress-image-diff.
Hi, can you provide more detail context around your settings such as package.json, node version and project structure please?
I've truncated some parts in the package.json file that I use for better readability, as the file is very long.
"scripts": { "cypress": "cypress open", "cy:stg:lcv:headless": "bash -c 'source .env.local-lcv && yarn run prereport && cypress run --browser electron --env ENV=stg,WEB=lcv,CONTENTSTACK_ENV=public-stg,CONTENTSTACK_API_KEY=${CONTENTSTACK_API_KEY},CONTENTSTACK_ACCESS_TOKEN=${CONTENTSTACK_ACCESS_TOKEN} --config baseUrl=https://pickup-stg.isuzu-tis.com/' && yarn run postreport", "prereport:junit": "yarn run delete:reports:junit", "postreport:junit": "yarn run combine:reports:junit", "prereport:mochawesome": "yarn run delete:reports:mochawesome", "postreport:mochawesome": "yarn run combine:reports:mochawesome && npx marge mochawesome.json", "prereport": "yarn run prereport:mochawesome && yarn run prereport:junit", "postreport": "yarn run postreport:mochawesome && yarn run postreport:junit", }, "devDependencies": { "@tripetch-isuzu/gitleaks": "^1.0.2", "cy-mobile-commands": "^0.3.0", "cypress": "12.9.0", "cypress-image-diff-html-report": "^2.0.2", "cypress-image-diff-js": "^2.1.2", "cypress-mochawesome-reporter": "^3.4.0", "cypress-multi-reporters": "^1.6.3", "cypress-ntlm-auth": "^4.1.2", "cypress-real-events": "^1.10.3", "cypress-recurse": "^1.29.0", "cypress-visual-regression": "^3.0.0", "cypress-wait-until": "^1.7.2", "del": "^7.0.0", "eslint": "7", "eslint-config-prettier": "^8.3.0", "eslint-plugin-cypress": "^2.12.1", "husky": "^8.0.3", "junit-report-merger": "^6.0.1", "lodash": "^4.17.21", "mocha": "^10.2.0", "mocha-junit-reporter": "^2.2.0", "mochawesome": "^7.1.3", "mochawesome-merge": "^4.3.0", "mochawesome-report-generator": "^6.2.0", "playwright-webkit": "^1.35.1", "prettier": "2.8.8" }
from cypress-image-diff.
This looks like "exports" field is not properly parsed by Webpack. What Webpack version are you using now?
from cypress-image-diff.
I'm having this same issue!
from cypress-image-diff.
Let's leave this one open for a while until we figure out, good that we have a workaround but equally we want to ensure this can run on supported older versions...
from cypress-image-diff.
Related Issues (20)
- Incorrect Difference Percentage Resulting from compareSnapshot Command HOT 6
- v1.31.0 was a breaking change HOT 3
- Add option to not take full size screenshot HOT 5
- Taken screenshots are not the size I configured HOT 10
- Option to run all tests and get diff files at once even if there are failing ones HOT 2
- Custom config file is not working HOT 14
- Cannot find module cypress-image-diff-js/dist/plugin HOT 12
- Config "FAILURE_THRESHOLD" did not work HOT 5
- Cypress integration broken: The deleteScreenshot 'task' event has not been registered in the setupNodeEvents method. You must register it before using cy.task() HOT 4
- User config error `cypress-image-diff.config.js`
- Missing JSON report when in `cypress OPEN` mode HOT 3
- Unable to update folder locations HOT 5
- Unable to generate JSON REPORT under Folder cypress-image-diff-html-report HOT 1
- Specify shared location/path for Screenshots and Reports HOT 2
- Package subpath './dist/plugin' is not defined by "exports"... HOT 8
- Intermittent Error: ENOENT: no such file or directory, open '/a/b/foo.png'
- Error: ERR_PACKAGE_PATH_NOT_EXPORTED HOT 4
- Trying to test maps but have uggly cut offs. HOT 1
- Component's transform translate changes unexpectedly during screenshot HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-image-diff.