Giter VIP home page Giter VIP logo

Comments (6)

igorpupkinable avatar igorpupkinable commented on June 6, 2024 1

argos-ci/jest-puppeteer#295

from percy-puppeteer.

wwilsman avatar wwilsman commented on June 6, 2024

Hey @igorpupkinable!

It looks like the error stack your provided is referencing the browser bundle of @percy/sdk-utils

node_modules/@percy/sdk-utils/dist/bundle.js

This should only be used in browser environments (where window would be available). For node, it should be using the main/node exports defined by the package.json: https://github.com/percy/cli/blob/master/packages/sdk-utils/package.json#L22-L28

Since you say this is only an issue when upgrading jest, it sounds like they might have changed their bespoke module loader which is not honoring native node module loading.

from percy-puppeteer.

frixatrix avatar frixatrix commented on June 6, 2024

@wwilsman hi, have the same issue with stack:

"engines": { "node": ">=16.16 <17", "npm": ">=8.13.2" }, "dependencies": { "puppeteer": "^14.0.0" }, "devDependencies": { "@percy/cli": "^1.1.3", "@percy/puppeteer": "^2.0.2", "eslint": "^8.15.0", "jest": "^28.1.0", "jest-circus": "^28.1.0", "jest-puppeteer": "^6.1.0", "puppeteer-core": "^14.0.0" }

and it was working fine for last few months until few days ago.
There were no changes from my side to the setup or tests.

Trying to find a way how to just return state back to normal and get running tests as before.


UPD:
Resolved my issue just with downgrading above list to exact versions without updates, like "@percy/cli": "1.1.3" instead of "@percy/cli": "^1.1.3".

Would be happy to update them once resolved.

from percy-puppeteer.

Robdel12 avatar Robdel12 commented on June 6, 2024

Hey @frixatrix! It sounds like Jest is broken in how they're importing modules. In a later version we updated how the export works to match the spec(s): percy/cli#962

from percy-puppeteer.

github-actions avatar github-actions commented on June 6, 2024

This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

from percy-puppeteer.

github-actions avatar github-actions commented on June 6, 2024

This issue was closed because it has been stalled for 28 days with no activity.

from percy-puppeteer.

Related Issues (17)

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.