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
- Install Ace CLI 1.3.7 with
npm install -g @daisy/ace
- Run
ace mybook.epub --outdir report
- 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.