question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read properties of undefined (reading 'isServer')

See original GitHub issue

The problem

cypress_1 | Cannot read properties of undefined (reading ‘isServer’) cypress_1 | TypeError: Cannot read properties of undefined (reading ‘isServer’) cypress_1 | at TLSWrap.onerror (node:_tls_wrap:411:27)

Environment

  • Node version: v16.14.2
  • @percy/cli version: v1.2.1
  • Version of Percy SDK you’re using: v3.1.1
  • If needed, a build or snapshot ID:
  • OS version: docker FROM cypress/included:10.0.2@sha256:867475b534cd815fb434e9222af4bc3da5152632077c91fc4b6d0497563ecff3
  • Type of shell command-line [interface]:

Details

Occasionally during screenshot upload to percy I am getting the following error which terminates the cypress run with an exit code of 1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
esetnikcommented, Jul 7, 2022

It appears it could be a cypress issue https://github.com/cypress-io/cypress/issues/22291

0reactions
esetnikcommented, Aug 9, 2022

Resolved in cypress v10.4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve (reading 'isServer') error in npm?
Catch this error after npm i. Version npm - 8.0.0, nodejs - 16.11.0. npm ERR! Cannot read properties of undefined ...
Read more >
Cannot read properties of undefined (reading 'isServer') #22291
Current behavior. Since upgrading to Cypress 10, we are getting crashes in our CI with the following error: Cannot read properties of undefined...
Read more >
error Cannot read properties of undefined (reading 'isServer')
I am setting up JSS (NextJS) application following https://miguelminoldo.fr/2021/10/18/deploying-sitecore-jss-next-vercel/.
Read more >
npm err! cannot read properties of undefined ... - Code Grepper
Cannot read properties of undefined (reading 'isServer') //if you have the error above just turn off any of your virtual servers.
Read more >
cannot read properties of undefined (reading 'has') - You.com
Undefined means that a variable has been declared but has not been assigned a value. In JavaScript, properties and functions can only belong...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found