-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[triple-slash-reference] TypeError: Cannot read property 'value' of undefined #2762
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
Comments
To resolve this issue, I disabled this rule in .eslintrc.json: {
...
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/triple-slash-reference": "off"
}
...
} |
Easy bug to fix
This line makes the assumption that Happy to accept a PR |
I would like to take it, I have never contributed to open source projects. Can you please share some insights on how to solve it? |
|
@deepenpatel3 👋 are you working on the issue? |
Repro
.eslintrc.json
.ts
tsconfig.json
Expected Result
Evaluate the file, and pass/reject the rule
Actual Result
Unhandled Exception (see below). Note that disabling all rules (//eslint-disable-next-line) for the problematic line did not stop the exception from occurring.
Additional Info
Versions
@typescript-eslint/eslint-plugin
4.7.0
@typescript-eslint/parser
4.7.0
TypeScript
4.0.5
ESLint
7.13.0
node
14.15.0
The text was updated successfully, but these errors were encountered: