This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 75
Cannot read property 'expression' of undefined #249
Labels
Comments
10 tasks
Thanks for the report. Do you have some sample code that can reproduce the problem? I'm having a hard time understanding the output you posted |
This is the stack trace from this project: at convert (typescript-eslint-parser/lib/ast-converter.js:1580:79)
at convertChild (typescript-eslint-parser/lib/ast-converter.js:501:20)
at typescript-eslint-parser/lib/ast-converter.js:746:46
at Array.forEach (native)
at convert (typescript-eslint-parser/lib/ast-converter.js:745:33)
at module.exports (typescript-eslint-parser/lib/ast-converter.js:2089:18)
at Object.parse (typescript-eslint-parser/parser.js:239:12) |
@vjeux Thanks. I did not know extend could be empty, you would think the typescript parser would complain about this. Will fix this case later today. |
This looks like it's in "ErrorRecovery" directory, so typescript is trying to be lenient around those things. |
The good thing is that this is the only error triggered by this project when running against all the 11k files of the typescript test suite :) |
That is fantastic news, thanks again for running those tests! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There are two tests in the typescript codebase that make typescript-eslint-parser throw:
Was found in prettier/prettier#1480
Those are the only two crashes from typescript-eslint-parser of the entire run: https://gist.githubusercontent.com/despairblue/79e090660fbb4093b35ab3b24c617dfb/raw/99e47ad1e34c32ddd91c15315f3c4fb92fa37d65/errors
The text was updated successfully, but these errors were encountered: