-
Notifications
You must be signed in to change notification settings - Fork 88
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
Weird error after initial setup #82
Comments
This is what the relevant section of code is transpiling to. Note that, this time around, it's 144 instead of 146. exports.configureAxe = exports.injectAxe = void 0;
exports.injectAxe = function () {
cy.readFile(/*require.resolve*/(144)).then(function (source) {
return cy.window({ log: false }).then(function (window) {
window.eval(source);
});
});
}; |
Tried rolling back to version I'm going to leave this branch open and move away from axe. If you guys can help, that'd be great. If not, we will not be able to use axe. Thanks |
@craig-dae Did you fix the issue? I have the same problem and any workarounds don't work for me. |
@Sadorus and @craig-dae i had the same issue my solve was to pin "axe-core": "4.0.2", and "cypress-axe": "0.9.1", then I was able to get the violations |
I was able to work around this by creating my own
Then instead of calling |
i submitted a pr here: #86 this should fix it similarly to other plugins with the same issue. seems to be a typescript issue |
🎉 This issue has been resolved in version 0.12.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
There's an issue with this. It crashes if |
I am still getting this error on version 0.12.2 |
can you edit to this commit to see if it solves your issue: 3dac12c I changed the second check, but may solve your issue |
This issue is not resolved when using cypress-axe 0.13.0 and axe-core 4.3.5 When I'm seeing this I'm even wondering if this is still being maintained? |
Yes, this issue still exists with the latest version, we tried calling our own method to inject the script. const injectAxe = () => { cy.readFile('../../node_modules/axe-core/axe.min.js').then((source) => { |
Similar issue encountered today using cypress-axe 0.13.0, this issue should probably be re-opened |
Seeing this with UPDATE: After upgrading to @cypress/webpack-preprocessor to the latest version, the problem I was having went away. Not sure if that will help anyone else, but thought I'd share anyway. |
Two years later and I've just implemented this and it's fixed the issue. Using cypress ina nx setup, versions are:
|
I just had the same issue, but i was able to fix it with defining the axe-core in injectAxe, like it was told in the README:
|
cy.readFile() must be passed a non-empty string as its 1st argument. You passed: 146.Learn more
This happens after finishing setup and trying to run a sample test.
This is in my command that I use to login:
Error happens on the
cy.injectAxe()
line.Thanks!
The text was updated successfully, but these errors were encountered: