Description
openedon Apr 21, 2024
🔎 Search Terms
I tried to find similar typescript OOM in issue github and on the Internet.
🕗 Version & Regression Information
typescript - 5.2.2
macos - macOS Ventura 13.6
chip - Apple M2
This problem appeared with typescript 5+, updating to the latest version of typescript does not prevent the error. Regressing to version 4 of typescript solves this problem. Also, this problem is reproduced only on macs with m1 processor and higher.
⏯ Playground Link
💻 Code
🙁 Actual behavior
Typescript is flowing with OOM errors.
🙂 Expected behavior
Working properly with memory.
Additional information about the issue
I am running eslint on a specific area where the ts/ts files with the react application are located. As a result, the process kills with a memory error - that is, OOM occurs.
Below I provide two snapshots with memory, both to be made after using garbage collector. To see exactly which typescript objects are leaking, it is enough to compare these reports.
Below I attach a link to google drive with snapshot memory. It was not possible to attach this archive directly to the github issue due to the larger file size. - https://drive.google.com/file/d/1XHJCz79eAwBKiHDS2-vtpcR--7b_xF_Z/view?usp=drive_link