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.

Runtime issue: TypeError: Cannot read property 'cells' of undefined

See original GitHub issue

Expectation: Color contrast checker step goes smoothly and reports the errors

Actual: Color contrast checker throws error instead

Motivation: Lighthouse accessibility audit is not ran properly because of this issue


axe-core version: 4.0.2
axe-webdriver, extension or other integration version: 4.6.1

Browser and Assistive Technology versions

For Tooling issues:
- Node version: XX  
- Platform:  MacOS

<< Please describe how you encountered this issue >>

This was first reported to Lighthouse issues (https://github.com/GoogleChrome/lighthouse/issues/11721), but apparently it’s related to axe tool instead.

This error happens when running axe on https://www.kayak.com/Cheap-New-York-Car-Rentals.15830.cars.ksp mobile version.

TypeError: Cannot read property 'cells' of undefined
    at g (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:117574)
    at g (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:117746)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:112534)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:105919)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:101530)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:103754)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:102856)
    at Object.t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:15179)
    at c.run (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:187710)
    at chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:205329

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
paulirishcommented, Sep 29, 2021

Here’s my repro:

  1. build axe 4.2.3
  2. open a tab in chrome stable (m94)
  3. take the unminified axe.js and pop it into chrome devtools snippets
  4. open https://allfront-marketing-site-qa.web.app/fintech
  5. flip on the devtools’ Device Toolbar and set it to Responsive. (wait for the page to refresh)
  6. evaluate the snippet
  7. run this in the console:
axe.run(document, {
    elementRef: true,
    runOnly: {
      type: 'tag',
      values: ['wcag2a','wcag2aa',],
    },
    resultTypes: ['violations', 'inapplicable']
}).then(ret => {
  console.log(ret);
  window.axeret = ret;
})

hopefully you see this:

axeret.incomplete[0].error

image

and here’s more of the results object:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript, Uncaught TypeError: Cannot read property "cells ...
In chrome, I'm seeing the error "Uncaught TypeError: Cannot set property 'innerHTML' of undefined" but have no idea how to fix it. I...
Read more >
Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >
How To Solve The Error 'Cannot Read Property 'Cell' Of ...
TypeError: Cannot read property 'cell' of undefined occurs when a table has variable number of cells in rows and page breaks inside the...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
Cannot read property 'cell' of undefined — DataTables forums
Link to test case: I Try to add new 3 column on the html Debugger code (debug.datatables.net): -- javascript.
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