cypress-axe icon indicating copy to clipboard operation
cypress-axe copied to clipboard

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

Open sethomas opened this issue 3 years ago • 1 comments

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?

sethomas avatar May 18 '21 21:05 sethomas

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

Phonesis avatar Feb 24 '22 17:02 Phonesis