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
ESLint: Cannot read property 'loc' of undefined. #792
Comments
It looks like you're not using our version of indent... - 'indent': [
+ '@typescript-eslint/indent': [
'error',
4
], |
Yup that fixes it. |
I don't know if this will help other people running into this problem, but I was setting a Typescript React project the other day and I run into this same error when typing TL;DR: I fixed this by adding I set up .eslint using the In order to fix this, I needed to add "plugin:prettier/recommended" to the extends array in the .eslintrc.js file. After doing this, the error was gone. So, my extends in the .eslintrc.js file became:
|
Thanks a lot, solved !! |
It fixed it because it disabled the base I also notice that you are using the Consider using https://www.npmjs.com/package/eslint-config-airbnb-typescript instead. |
This bug still exists, #441
Code I have been working on, was restructing and changing a let to const
ESlint config
Dependencies
@typescript-eslint/parser
1.13.0
TypeScript
3.5.3
ESLint
6.1.0
node
10.16.0
npm
6.10.2
The text was updated successfully, but these errors were encountered: