-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: RuleTester
: cannot read properties of undefined
(reading 'parse'
)
#10191
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
Noting for debugging that this depends on the version of eslint used. For me, it worked with 8.57 and up to eslint 9.4, but we get the error starting with eslint 9.5. |
Thanks @jeremybanka for making this very nice repro repo! |
Signed-off-by: Olga Bulat <obulat@gmail.com>
This comment was marked as off-topic.
This comment was marked as off-topic.
Signed-off-by: Olga Bulat <obulat@gmail.com>
@RobinTail We are aware of this issue. There is also already a PR open to fix the issue in #10201 (I'd even encourage you to try it out and validate if it fixes your use case, or report on the PR if you find bugs with it!). Most likely either it or a revert will go out with our Monday release. No need to bump this issue with an "I have this issue too" comment. Thanks for understanding! |
Signed-off-by: Olga Bulat <obulat@gmail.com>
Signed-off-by: Olga Bulat <obulat@gmail.com>
Signed-off-by: Olga Bulat <obulat@gmail.com>
Signed-off-by: Olga Bulat <obulat@gmail.com>
Signed-off-by: Olga Bulat <obulat@gmail.com>
Signed-off-by: Olga Bulat <obulat@gmail.com>
* Migrate the plugin to ESLint v9 * Fix auto-fixable problems * Fix other problems * Update code owners * Use ts config for js files * Simplify gitignore handling * Re-add vitest eslint rules to tests * Downgrade ESLint to fix typescript-eslint/typescript-eslint#10191 * Add suggestions from the code review * Update dependencies --------- Signed-off-by: Olga Bulat <obulat@gmail.com>
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
RuleTester
is no longer able to function in any test case I have been able to find, always throwing a type error before handling the test case.Looking into the issue, it seems to stem from providedConfig always being undefined. I suspect the issue was introduced by #10147 .
At some point, a property is accessed and we get the TypeError given in the title. In detail, it looks like
Reproduction Repository Link
https://github.com/jeremybanka/tseslint-parsing-bug
Repro Steps
You will see the error shown above.
To verify that it does not occur with the previous version
8.10.0
, simply revert my most recent commit:Versions
@typescript-eslint/eslint-plugin
8.11.0
@typescript-eslint/parser
8.11.0
@typescript-eslint/rule-tester
8.11.0
TypeScript
5.6.3
ESLint
9.13.0
node
22.10.0
The text was updated successfully, but these errors were encountered: