Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed as not planned
Closed as not planned
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Issue Description
I type in "eslint src" and eslint would hang and start gobbling memory.
After it has taken about 4 gigs of memory, node would throw an out of memory error.
I have made a minimal reproduction example repo in github.
It seems to be a complex bug through the interplay between typescript-eslint and i18next.
I first discovered it by upgrading to i18next version 22. They did a major typescript rewrite
for that version. It can be seen from this repo as well, if i18next is removed, the bug disappears.
These are things I have tried to change, and then notice that the bug goes away:
- remove i18next.d.ts file (or any code in there)
- remove i18next package
- move i18next to the src directory
- in eslint conf replace "plugin:@typescript-eslint/recommended-requiring-type-checking" with "plugin:@typescript-eslint/recommended"
- change the content of src/broken.ts in any way.
Reproduction Repository Link
https://github.com/raigoinabox/typescript-eslint-hang-bug
Repro Steps
- clone the repo
npm install
npx eslint src
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 5.53.0 |
@typescript-eslint/parser | 5.53.0 |
@typescript-eslint/scope-manager | 5.53.0 |
@typescript-eslint/typescript-estree | 5.53.0 |
@typescript-eslint/type-utils | 5.53.0 |
@typescript-eslint/utils | 5.53.0 |
TypeScript | 4.9.5 |
ESLint | 8.35.0 |
node | 16.19.1 |