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
[2.5.0] 0:0 Parsing error: Cannot read property 'name' of undefined #1125
Comments
My module.exports = {
env: {
browser: true,
jest: true,
node: true
},
extends: [
'eslint:recommended',
'semistandard',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
overrides: [
{
files: ['*.js', '*.spec.js'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off'
}
}
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: [
'./tsconfig.json'
],
warnOnUnsupportedTypeScriptVersion: false
},
plugins: ['@typescript-eslint'],
rules: {
indent: 'off', // required as 'off' by @typescript-eslint/indent
'@typescript-eslint/indent': ['error', 2]
},
settings: {}
}; My
|
Unfortunately eslint currently swallows the error message from the parser. If you could, could you please manually patch that into your local node_modules folder? |
Ok, so I was not going blind - good to know :) One of the outputs -
|
And his is one for the
|
Awesome, thanks for that - I'll take a look. |
I'm getting the same "invisible" name error at
That line 1247 looks like this:
and in fact Any ideas? |
This has been fixed against master: #1746 Please avoid commenting on old issues. Prefer opening a new issue and referencing the old issue. |
Since 2.5.0 (was previously on 2.3.3 and also tested 2.4.0 as all-ok), I'm getting a number of these errors in . my project.
What code were you trying to parse?
kind
error -name
error -The above is innocent enough and one of the files. It certainly cannot be file-specific in this case.
What did you expect to happen?
It should lint. Nothing in the project setup has changed between 2.3.3 and 2.5.0
What actually happened?
These are the various errors -
(Only 1 per file)
Versions
@typescript-eslint/parser
2.5.0
(also tried latest canary)TypeScript
3.6.4
ESLint
6.5.1
node
12.2.0
npm
6.9.0
(although using yarn1.19.1
)I'm not sure the above is anywhere close enough info to diagnose. I tried running with
eslint --debug
as well, but it just seems to be a lot of not-so-useful info.Happy to supply any details needed.
The text was updated successfully, but these errors were encountered: