-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cypress regression]TypeError: data.hasOwnProperty is not a function
#434
Comments
Just ran into the same issue. Note that it works with Cypress v9.0, but not with v9.1 |
👋🏼 I'm not at my computer to debug this yet but it feels like a red herring that there's nothing Percy related in that stack trace. Why is there bluebird in the stack trace (really old promise dep)? 🤨 I see |
@Robdel12 This appears to be related to percy: if I remove all the related code to percy, it works fine again in my case (on several projects). We do use TS as well, both TS 4.4 and TS 4.5. |
TypeError: data.hasOwnProperty is not a function
)
This sure does smell a lot like cypress-io/cypress#15101 & #325 |
It does. I also had that issue in the past, but this was fixed and had not happened again since. |
FYI someone opened a similar issue on Cypress cypress-io/cypress#19091 |
Also getting this issue after upgrade to 9.1.0, I have percy enabled. |
Downgrading to Cypress 9.0.0 Resolves the issue for me. Note: Not using Typescript |
We're seeing error this happen, but only in specs that have involve |
TypeError: data.hasOwnProperty is not a function
)TypeError: data.hasOwnProperty is not a function
My guess is Cypress had a regression in their networking stack. Percy's SDK Looks like we'll have to wait for Cypress to patch |
I added a comment to the Cypress issue, but this doesn't appear to be a Percy issue. Staying on v9.0.x will stay away from the issue (I believe) while this is looked at by the Cypress folks. Here's the comment I left on their issue: I spent some time digging in to try and isolate & reproduce. describe("Breaking reproduction", function () {
it("doesn't throw an error when making requests", function () {
cy.then(() =>
Cypress.backend("http:request", {
url: "http:localhost:8001/nothing/here",
method: "POST",
})
);
});
}); This will break with the same stack trace in the OP (https://github.com/percy/example-percy-cypress/runs/4400801282?check_suite_focus=true) |
Upgrading to v9.1.1 of cypress should solve this cypress-io/cypress#19091 |
Warn users when using percy-cypress along with known incompatible cypress v9.1.0 See: percy#437 (comment) percy#434
The problem
After adding line to cypress/support/index.js:
then running Cypress fails with:
When I am downgrading cypress to:
There is no error. Everything works properly.
Environment
The text was updated successfully, but these errors were encountered: