question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: Latest version 3.1.41 throws an error and crashes

See original GitHub issue

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:

  /**
   * 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

  1. Install “accessiblity-checker”: 3.1.41.
  2. Have tests using the getCompliance and assertCompliance functions.
  3. Error is thrown:
Screenshot 2022-11-09 at 16 26 29

And after this initial error… every test fails with the following error message:

Screenshot 2022-11-09 at 16 26 45

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tombrunetcommented, Dec 9, 2022

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.

1reaction
tombrunetcommented, Nov 9, 2022

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 @babel is 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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found