Giter Club home page Giter Club logo

Comments (8)

kien-ht avatar kien-ht commented on July 19, 2024 2

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.

Strezzo06 avatar Strezzo06 commented on July 19, 2024 1

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.

PippoRaimondiDIT avatar PippoRaimondiDIT commented on July 19, 2024 1

🎉 This issue has been resolved in version 2.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

from cypress-image-diff.

kien-ht avatar kien-ht commented on July 19, 2024

Hi, can you provide more detail context around your settings such as package.json, node version and project structure please?

from cypress-image-diff.

Strezzo06 avatar Strezzo06 commented on July 19, 2024

Hi, can you provide more detail context around your settings such as package.json, node version and project structure please?

I run on docker
Docker File
Screen Shot 2023-12-19 at 11 48 43 AM

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" }

Project structure
Screen Shot 2023-12-19 at 11 45 09 AM
Screen Shot 2023-12-19 at 11 45 20 AM

from cypress-image-diff.

kien-ht avatar kien-ht commented on July 19, 2024

This looks like "exports" field is not properly parsed by Webpack. What Webpack version are you using now?

from cypress-image-diff.

Lisa-Danielle avatar Lisa-Danielle commented on July 19, 2024

I'm having this same issue!

from cypress-image-diff.

PippoRaimondi avatar PippoRaimondi commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.