[BUG]: Latest version 3.1.41 throws an error and crashes
See original GitHub issueProject
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:
/**
* Runs the accessibility scan and on failure, outputs the results.
*/
async function runAAT(component, label) {
const validateComponent = async () => {
const results = await AAT.getCompliance(component, label);
if (AAT.assertCompliance(results.report) === 0) {
return true;
}
return false;
};
const a11yValidation = await validateComponent();
if (a11yValidation === true) {
fs.unlinkSync(`${process.env.PWD}/results/a11y/${label}.json`);
}
return a11yValidation;
}
Steps to reproduce
- Install “accessiblity-checker”: 3.1.41.
- Have tests using the
getComplianceandassertCompliancefunctions. - Error is thrown:
And after this initial error… every test fails with the following error message:
Issue Analytics
- State:
- Created 10 months ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Bug listing with status RESOLVED with resolution FIXED as at ...
Bug listing with status RESOLVED with resolution FIXED as at 2022/12/30 10:46:27.
Read more >213145 – AMDGPU resets, timesout and crashes after ...
Bug 213145 - AMDGPU resets, timesout and crashes after "*ERROR* Waiting for fences timed out!".
Read more >Patch 8 - Known Issues and General Troubleshooting ...
Issues with saves or new games. Errors or crashes when loading saves; Certain classes or races not showing up in character creation as ......
Read more >Application Crashes With "Internal Error In The .NET Runtime"
The generic cause is corruption of the state of the garbage collected heap. Which in turn is invariably caused by unmanaged code. The...
Read more >'Aw, Snap' error screen shown when test runs over 250 ...
sometimes facing Aw snap and sometimes it crashes my application server to ... I think this is a different bug, & will raise...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
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
@babelis not referenced anywhere. I’ll try to run through some of our boilerplates to see if there’s some react combination that’s triggering that, but it seems like something in your environment is injecting into that file. Can you possibly include a copy of your ace-node.js file so we can compare against the original?