Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Error: Expect axe._selectorData to be set up #116

Closed
benchudev opened this issue Sep 10, 2019 · 4 comments
Closed

Error: Expect axe._selectorData to be set up #116

benchudev opened this issue Sep 10, 2019 · 4 comments
Assignees

Comments

@benchudev
Copy link

I intermittently get the following error with react-axe:

axe.js:5500 Uncaught (in promise) Error: Expect axe._selectorData to be set up at generateSelector (axe.js:5500) at Object.createUniqueSelector [as getSelector] (axe.js:5556) at DqElement.get selector [as selector] (axe.js:4909) at axe.js:4340 at Array.map (<anonymous>) at axe.js:4333 at Array.map (<anonymous>) at axe.js:4330 at Array.forEach (<anonymous>) at Object../node_modules/axe-core/axe.js.helpers.processAggregate (axe.js:4322)

It tends to happen when I have a lot of component updates happening.

using axe-core 3.3.2, react-axe 3.3.0
implementing as follows in root of my application:

if (process.env.NODE_ENV !== 'production') { const axe = require('react-axe'); axe(React, ReactDOM, 1000); }

I saw a fix had previously been added to solve this: #32

@chimericdream
Copy link
Contributor

I am seeing this as well. I saw that a new version of axe-core was just published, so I tested with that but still got the error.

Tested with:

The error showed up in both cases.

@tombartlettmh
Copy link

I am also seeing this - I think in part due to a Usabilla script being added to the DOM and an iframe being injected by the 3rd party.

@straker straker self-assigned this Feb 13, 2020
@padmavemulapati padmavemulapati changed the title Error: Expect axe._selectorData to be set up [WIP]Error: Expect axe._selectorData to be set up Mar 3, 2020
@padmavemulapati
Copy link

Unable to execute react-axe, because of an update of chrome. Making the tiket work in progress and will verify once issue fixed.

@padmavemulapati
Copy link

Seeing the debounce (timeout) changes, and not getting any exceptions even after 10 times executed. on latest react-axe(3.4.1), the debounce fix made it issue fixed. Everything looks good in this context.

@padmavemulapati padmavemulapati changed the title [WIP]Error: Expect axe._selectorData to be set up Error: Expect axe._selectorData to be set up Mar 16, 2020
@straker straker closed this as completed Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants