Open m-nathani opened 2 years ago
Loosk like dom keys are not loading from aria-query
or needs some type checking on this line
The solution we came for this was after checking the package-lock.js
file with same branch was adding the missing package aria-query
to it.
Somehow on running npm i
it was not generating aria-query
in the lock file on linux and then doing:
npm i -D eslint-config-react-app eslint-plugin-jsx-a11y
npm uninstall eslint-config-react-app eslint-plugin-jsx-a11y
comparing the diff of lock file generated we found the missing code below:
"node_modules/eslint-plugin-jsx-a11y/node_modules/aria-query": {
"version": "4.2.2",
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz",
"integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==",
"dev": true,
"dependencies": {
"@babel/runtime": "^7.10.2",
"@babel/runtime-corejs3": "^7.10.2"
},
"engines": {
"node": ">=6.0"
}
},
In the diff it looks like aria-query was missing from eslint-plugin-jsx-a11y’s dependencies and that is where the dom in dom.keys() is coming from which was causing the error.
However, i still dont know why it did not generate aria-query
package before on simple doing npm i
.
Seems related to #875.
What version of @babel/runtime
do you actually have installed on disk?
Getting the follwowing error after installing eslint v8.20.0. not sure what causing break as it was working fine with eslint v8.17.0 before.
here is the my eslint npm package trace
Following is the custom eslint plugin i am using in my code:
lastly this is my eslintrc.js file