Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axe-core dependency breaks nodejs14 compliancy #953

Closed
Jimbo3993 opened this issue Sep 7, 2023 · 3 comments · Fixed by dequelabs/axe-core#4152
Closed

axe-core dependency breaks nodejs14 compliancy #953

Jimbo3993 opened this issue Sep 7, 2023 · 3 comments · Fixed by dequelabs/axe-core#4152

Comments

@Jimbo3993
Copy link

Hi,

Our project is running under nodeJs 14.17.0,

Since yesterday evening, the lint phase can't go through and throws error because "Object.hasOwn() is not a function" whenever it's assessing jsx-a11y eslint rules,

Prefixing axe-core to version ~4.7 in our package.json fixes it, but it would be nice to mention that nodeJs14 is not compatible atm.

this is the release note from axe-core about the version 4.8, https://github.com/dequelabs/axe-core/releases/tag/v4.8.0

@ljharb
Copy link
Member

ljharb commented Sep 7, 2023

That sounds like a bug in axe-core. Can you file it there? https://npmjs.com/object.hasown is an easy solution.

@ljharb
Copy link
Member

ljharb commented Sep 7, 2023

(related; dequelabs/axe-core#4127)

@ljharb
Copy link
Member

ljharb commented Sep 8, 2023

This fix was merged into axe-core, so presumably it will be in v4.8.2.

@ljharb ljharb closed this as completed Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants