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.

Cypress crashes: TypeError: Cannot read property '0' of null

See original GitHub issue

bug

version

Cypress 1.0.1 on Linux

When @jennifer-shehane changed her GitHub email, Cypress run started crashing trying to parse the commit author line (in several projects).

Opening Cypress...
TypeError: Cannot read property '0' of null
    at Function.module.exports.Commit.actor (/root/cypress-dashboard/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/gift/lib/commit.js:176:56)
    at Function.module.exports.Commit.parse_commits (/root/cypress-dashboard/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/gift/lib/commit.js:139:21)
    at /root/cypress-dashboard/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/gift/lib/commit.js:99:39
    at ChildProcess.exithandler (child_process.js:209:7)

The crash happens inside gift package at line that tries to parse author line

ref1 = this.actor(author_line), author = ref1[0], authored_date = ref1[1];

We need to handle the crash.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
bahmutovcommented, Oct 27, 2017

work around for now - disable PGP signature 😦

0reactions
brian-manncommented, Oct 30, 2017

Fixed in 1.0.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

uncaught typeerror: cannot read properties of undefined ...
In your example Uncaught TypeError: Cannot read properties of undefined (reading 'replace' ) can occur only if your variables song and/or artist are...
Read more >
Cypress fixtures - Cannot read properties of undefined ...
I'm trying to use fixtures to hold data for different tests, specifically user credentials. This is an example of the code. When it...
Read more >
Error Messages | Cypress Documentation
We found an error preparing your test file. This message means that Cypress encountered an error when compiling and/or bundling your test file....
Read more >
Cypress Tips and Tricks - Gleb Bahmutov
For Cypress v10+ specific tips, read the blog post Cypress v10 Tips and Tricks. ... Uncaught TypeError: Cannot assign to read only property...
Read more >
cypress-io/cypress - Gitter
Using cypress-cucumber-preprocessor plugin I am unable to use cy.fixture method ... for some of my tests: TypeError: Cannot set property 'innerHTML' of null....
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