Bug: TypeError: Cannot read properties of undefined (reading 'type') #16898
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
repro:needed
Environment
Node version: v19.6.0
npm version: 8.19.2
Local ESLint version: v8.34.0
Global ESLint version: none
Operating System: Linux
What parser are you using?
@babel/eslint-parser
What did you do?
Configuration
What did you expect to happen?
No error
What actually happened?
Oops! Something went wrong! :(
ESLint: 8.34.0
TypeError: Cannot read properties of undefined (reading 'type')
Occurred while linting /home/shasherazi/programming/microverse/awesom-books/app.js:1
at /home/shasherazi/programming/microverse/awesom-books/node_modules/esquery/dist/esquery.min.js:1:29469
at /home/shasherazi/programming/microverse/awesom-books/node_modules/esquery/dist/esquery.min.js:1:30512
at b.matches (/home/shasherazi/programming/microverse/awesom-books/node_modules/esquery/dist/esquery.min.js:1:34848)
at NodeEventGenerator.applySelector (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/node-event-generator.js:296:21)
at NodeEventGenerator.applySelectors (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/node-event-generator.js:324:22)
at NodeEventGenerator.enterNode (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
at /home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/linter.js:1153:32
at Array.forEach ()
at runRules (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/linter.js:1148:15)
at Linter._verifyWithoutProcessors (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/linter.js:1397:31)
at Linter._verifyWithConfigArray (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/linter.js:1772:21)
at Linter.verify (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/linter.js:1479:65)
at Linter.verifyAndFix (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/linter/linter.js:2031:29)
at verifyText (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/cli-engine/cli-engine.js:245:48)
at CLIEngine.executeOnFiles (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/cli-engine/cli-engine.js:823:28)
at ESLint.lintFiles (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/eslint/eslint.js:551:23)
at Object.execute (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/lib/cli.js:417:36)
at async main (/home/shasherazi/programming/microverse/awesom-books/node_modules/eslint/bin/eslint.js:135:24)
Participation
Additional comments
Many of my fellow students are facing this
Oops! Something went wrong! :(
which is causing blockers in their work. I cant seem to figure out the reason behind thisThe text was updated successfully, but these errors were encountered: