component-driven / cypress-axe

Test accessibility with axe-core in Cypress
MIT License
622 stars 86 forks source link

require function is used in a way in which dependencies cannot be statically extracted #99

Open sethomas opened 3 years ago

sethomas commented 3 years ago

Howdy, I am getting a similar output to this issue filed in axe-core: https://github.com/dequelabs/axe-core/issues/2840

Using Cypress 7 with their dev server, Component testing via cypress open-ct, and mount(<p>LOL</p>).checkA11y():

WARNING in ../node_modules/cypress-axe/dist/index.js 16:47-54
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ../cypress/support.js 1:0-21
 @ ./cypress/support/index.js 34:0-34
 @ ../node_modules/@cypress/webpack-dev-server/dist/loader.js!../node_modules/@cypress/webpack-dev-server/dist/browser.js 2:30-94
 @ ../node_modules/@cypress/webpack-dev-server/dist/browser.js 2:4-41

Versions:

node: 12.13.0
npm: 6.12.0

"@cypress/code-coverage": "3.9.5",
"@cypress/react": "5.7.0",
"@cypress/webpack-dev-server": "1.2.0",
"@testing-library/cypress": "7.0.6",
"axe-core": "4.2.0",
"cypress": "7.3.0",
"cypress-axe": "0.12.2",

Is this an issue with cypress-axe or axe-core?

Phonesis commented 2 years ago

Was this ever resolved / looked into? Still seems to be an issue with axe and cypress component lib