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

Error when executing cypress run on windows: TypeError: Cannot read properties of undefined (reading 'trim') #30378

Closed
ryanthemanuel opened this issue Oct 8, 2024 · 0 comments · Fixed by #30380

Comments

@ryanthemanuel
Copy link
Collaborator

Current behavior

On windows machines in some circumstances (likely based on what is running on the machine), the following error may occur when doing a cypress run:

TypeError: Cannot read properties of undefined (reading 'trim')

Desired behavior

Cypress should not error and the tests should execute

Test code to reproduce

There's not code currently to reproduce this as it seems to be very specific to a given windows machine.

Cypress Version

latest

Node version

latest

Operating System

windows

Debug Logs

No response

Other

The error is coming from within the find_process package:

It's possible that in this particular case there's a process that isn't playing nicely with the way lines are being split in that code. There are a couple of options we can look at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants