TS server to crash repeatedly when include large js file (> 4 * 1024 * 1024) #4278
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
upstream
I found many issues indicating that their TS server crashed 5 times. Closing the hybridMode does not seem to solve the problem. I found a reproducible case, not sure if it is helpful.(The following cases have all enabled the hybridMode.)
A React project that contains a 19 MB mjs file and has the allowJs option enabled
ok-without-volar.txt
ok-with-volar-in-tsx-file.txt
Other conditions unchanged, replace with vue project
not-ok-with-volar-in-vue-file.txt
Reproduce repo
https://github.com/skywalker512/volar-ts-crash
I found that this.info.containingProjects is empty when processing getFileTextAndSize, which should be the cause of the problem. I don't have time to explore how to fix it specifically.
The text was updated successfully, but these errors were encountered: