-
Notifications
You must be signed in to change notification settings - Fork 83
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
[BUG]: Latest version 3.1.41 throws an error and crashes #1149
Comments
Quick test on our end had no failure. We don't have any imports in the ace-node.js file - you can open https://unpkg.com/accessibility-checker-engine@3.1.41/ace-node.js and search and see that that |
Hi @tombrunet, I'm using I'm not able to find the ace-node.js file in the The error reported seems to be in a Am I making sense? |
|
Thanks @tombrunet. So, I was able to get the ace-node file. I attach it here: https://github.com/carlosparreno/sharefiles/blob/main/ace-node.js Please, let me know if I can help somehow. I'll be off for a few days but someone from my team will back me up if you need anything. Thanks |
From Triage meeting: The next thing for you to try is probably loading a minimal set of things and see if you still see this? |
Thanks @aliunwala. I work with Carlos and I was investigating this issue further. It looks like the new cacheFolder option in config might be the root cause of our problem. Previously the engine folder was created in and now it's: How can we set the cacheFolder option in config so it's working for us as previously? |
You can add |
We’ve been having a similar issue in our monorepo. We were able to resolve tests locally after setting the |
@elycheea What did you set as a cacheFolder? Can you try an absolute path? |
That PR should resolve relative paths as absolute, which should be released next week, but that's something you can try if you're in a hurry. |
Thanks @tombrunet We’ll give it a shot — not sure if our situation ends up a bit more complicated with our monorepo though. I think my team has reached out before with other questions related to config due to our setup. |
Hi @tombrunet , we’re having issues with setting up the cacheFolder. We tried adding the cacheFolder as follows: but we get the following error for all of our tests: We can see that ace-node.js exists in the path specified in cacheFolder option: |
Can you please try version 3.1.42-rc.0 using the cacheFolder? |
Thanks @tombrunet. I tried 3.1.42-rc.0 but I’m still getting the same error. I noticed that if I change the cacheFolder to just accessibility-checker the tests are passing locally but they fail in Github Actions. This also happens with version 3.1.42-rc.0. |
i'm taking over this issue on my team from @elycheea and wanted to follow up. has there been any update on this? |
Fix is in PR: #1240 |
Hi at @tombrunet and @sct-will, I installed the latest version of accessibility-checker 3.1.43 that I believe contains the fix but I’m getting the following error:
I’m not sure if this is related to the same issue of cacheFolder in config but it looks like when I’m importing modules from accessibility-checker to run with Jest it cannot find |
@grabowsd Could you try doing another That should install string-hash (It is included in the package.json here: https://github.com/IBMa/equal-access/blob/master/accessibility-checker/package.json) If you get any errors after that please post a screen shot again. |
@grabowsd This package is missing from the latest release of |
@aliunwala Those dependencies need to be in this package.json: https://github.com/IBMa/equal-access/blob/master/accessibility-checker/src/package.json. I'll fix. |
Closing issue |
@carlosparreno While digging into something else, I found perhaps a cleaner fix for this. Add this to your jest config instead of changing the cache folder |
@tombrunet, thanks for your help! Adding Note |
@tombrunet, @grabowsd, @davidicus Thanks everybody, issue resolved. |
Project
a11y checker engine
Browser
Chrome, Safari, Firefox
Operating system
MacOS, Other
Description
We use the accessibility checker in a React project.
We are using version "^3.1.40" that automatically picks up any new minor/patch version.
Since the time version 3.1.41 has been released our accessibility tests fail with the following error:
Error: Cannot find module '@babel/runtime-corejs3/helpers/interopRequireDefault' from '../../../../../tmp/accessibility-checker/engine/ace-node.js'
When we fixate the version to be 3.1.40 the error is not reproducible any longer.
Additionally I add here how we use
accessibility-checker
. All components are used with the following function:Steps to reproduce
getCompliance
andassertCompliance
functions.And after this initial error.... every test fails with the following error message:
The text was updated successfully, but these errors were encountered: