Skip to content

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

@barbosapaulo

Description

@barbosapaulo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions