-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[prefer-readonly-parameter-types] Cannot read property 'flags' of undefined #3405
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
@kirjs and I had a splendid time pairing on this: turns out |
I'm not entirely sure if it's a duplication, but it looks a lot like the one reported in #1742 (error logs are pretty similar). |
@rafaelss95 the stack trace from |
As of #6428, the |
Hello,
prefer-readonly-parameter-types
rule seems to crash in certain cases. This issue was spotted by automated CI run - it is not blocking my development or anything.Repro
This is as minimal as I could narrow the issue down.
Expected Result
ESLint should not crash.
Actual Result
Additional Info
Crash reports from real projects
Rule: prefer-readonly-parameter-types
Cannot read property 'flags' of undefined Occurred while linting /workspaces/eslint-remote-tester/node_modules/.cache-eslint-remote-tester/querycap/webappkit/@querycap/reactutils/must.tsx:7
querycap/webappkit/@querycap/reactutils/must.tsx
Versions
@typescript-eslint/eslint-plugin
4.23.0
@typescript-eslint/parser
4.23.0
TypeScript
4.2.4
ESLint
7.26.0
node
v14.15.1
The text was updated successfully, but these errors were encountered: