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

Runtime issue: Cannot read properties of undefined (reading 'source') #3627

Closed
JackieHayduk opened this issue Aug 31, 2022 · 5 comments
Closed
Labels
extension Axe Firefox or Chrome extension issues

Comments

@JackieHayduk
Copy link

<< Please describe how you encountered this issue >>

axe-core version: 4.4.2
axe-extension version: 4.36.2

TypeError: Cannot read properties of undefined (reading 'source')
    at chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/axe-versions/latest/axe.js:12:167249
    at Array.map (<anonymous>)
    at chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/axe-versions/latest/axe.js:12:167219
    at Array.forEach (<anonymous>)
    at chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/axe-versions/latest/axe.js:12:167169
    at Array.forEach (<anonymous>)
    at chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/axe-versions/latest/axe.js:12:167065
    at Array.map (<anonymous>)
    at chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/axe-versions/latest/axe.js:12:166733
    at Array.map (<anonymous>)
@WilcoFiers
Copy link
Contributor

Can you provide some information on how you got this error?

@JackieHayduk
Copy link
Author

JackieHayduk commented Sep 1, 2022 via email

@WilcoFiers WilcoFiers added extension Axe Firefox or Chrome extension issues and removed question labels Sep 5, 2022
@WilcoFiers
Copy link
Contributor

That'll be difficult to debug. I can't think of anything either related to running on localhost, or running storybook that could cause this issue. @scurker / @schne324 any thoughts?

@scurker
Copy link
Member

scurker commented Sep 13, 2022

@JackieHayduk is there any way you could run axe-core manually to see if you get the same issue? That may help us narrow down the problem. In your chrome devtool console, you can try the following where '.selector .to .element is a unique selector to the part of the page you're trying to scan:

await import('https://unpkg.com/axe-core@4.4.2')
await axe.run([document.querySelector('.selector .to .element')], {
  restoreScroll: true,
  resultTypes: ['violations', 'incomplete']
}) 

Do you get any errors when running something similar to the above code example?

@padmavemulapati
Copy link

Cannt reproduce with axe-core also it is tracking from the extension, https://github.com/dequelabs/axe-extension/issues/3185 . So closing here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension Axe Firefox or Chrome extension issues
Projects
None yet
Development

No branches or pull requests

4 participants