daisy / daisy/ace

Error: window.axe.configure is not a function (Ace CLI 1.3.7 on macOS)

Open
#451 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
98
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When running Ace CLI 1.3.7 on macOS (installed via npm), validation fails with the following error:

TypeError: window.axe.configure is not a function
at daisy.ace.run (acehttps://0.0.0.0/AXE_RUNNER/ace-axe.js:88:14)
...
Error: Failed to check Content Document 'xxx.xhtml': window.axe.configure is not a function

**To Reproduce**
1. Install Ace CLI 1.3.7 with `npm install -g @daisy/ace`
2. Run `ace mybook.epub --outdir report`
3. See error

**Expected behavior**
Ace should run axe-core checks successfully without throwing `window.axe.configure is not a function`.

**Environment**
- Ace CLI 1.3.7
- macOS (please specify version)
- Node.js version (please specify)

**Additional context**
According to axe-core documentation, `axe.configure()` exists since v4.1.0. It seems Ace CLI 1.3.7 ships with an older axe-core version, causing the error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.