Skip to content
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

Cannot destructure property 'errors' of 'object null' as it is null. #106

Closed
swathisham opened this issue Oct 3, 2021 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@swathisham
Copy link

swathisham commented Oct 3, 2021

Seeing this error mentioned in https://githubmemory.com/repo/mfrachet/cypress-audit/issues/74
image

@swathisham swathisham added the bug Something isn't working label Oct 3, 2021
@mfrachet
Copy link
Owner

mfrachet commented Oct 5, 2021

Thank you for filling this issue.

Without any additional context and according to the fact that you didn't take time to fill the bug template to provide meaningful information about your setup, I will close this issue without even investigating.

If you're interested in seeing this bug fix, please, create an issue with the required informations.

@mfrachet mfrachet closed this as completed Oct 5, 2021
@jblotus
Copy link

jblotus commented Nov 8, 2021

I have the same error. This only seems to happen when I supply threshold property to the cy.lighthouse() command.

cy.visit('/');
cy.lighthouse({
    performance: 85,
    "first-contentful-paint": 2000,
});

@jblotus
Copy link

jblotus commented Nov 8, 2021

I apologize, I was getting the error regardless of setting this option. I think what ended up happening was the tab that is normally spawned to perform the audits was failing to spawn for some reason. I closed out of the spec (I'm in open mode) and reloaded it and it ran just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants