Closed seahindeniz closed 5 months ago
This doesn't look like a vue-tsc issue, there might be a recursive type in your project, we can't investigate it without a repro case.
Yeah, I'll try to create one
Did you find the issue type? I have the same error but can not find which type causing recursive.
It was an expensive search, but I have tracked the issue down by adding folder paths to include
field in tsconfig file. When I bump into the folder, I have narrowed my folder scope down to the file which had this issue.
For me, it was the following code, line 90
I have referenced the type of the Pinia store in the function declared outside the store, which led to the issue
The way you digging this issue do really inspire me. Thank you, now I think I can fix it after few days later.
It was an expensive search, but I have tracked the issue down by adding folder paths to
include
field in tsconfig file. When I bump into the folder, I have narrowed my folder scope down to the file which had this issue. For me, it was the following code, line 90I have referenced the type of the Pinia store in the function declared outside the store, which led to the issue
This crash happend between two package my projects using. Out of my control now... Do you know which style of type will cause this issue?
At the moment, I don't know. My only solution was removing the type for good. I'll try to create a repo with a minimal repro case so that it can be debugged. Maybe you could do the same so it could be a different test case to this issue. How's that sound?
At the moment, I don't know. My only solution was removing the type for good. I'll try to create a repo with a minimal repro case so that it can be debugged. Maybe you could do the same so it could be a different test case to this issue. How's that sound?
My case is repro package vxe-table has a entry to make some template as global slots. I make some ant design vue component with that. This crash happend between those two package. It seem no solution for now.
@johnsoncodehk do you think adoin's repro case would suffice for investigating the issue? I'll also provide another one for the Pinia related issue
Sorry we currently don't have enough energy to focus on issues unrelated to this repo. For related type issues, please raise it in the #language-tools or #typescript channel of the Vue Discord server, thanks.
At the moment, I don't know. My only solution was removing the type for good. I'll try to create a repo with a minimal repro case so that it can be debugged. Maybe you could do the same so it could be a different test case to this issue. How's that sound?
My case is repro package vxe-table has a entry to make some template as global slots. I make some ant design vue component with that. This crash happend between those two package. It seem no solution for now.
Did you find solution? Cuz I have same problem
vue-tsc --noEmit -p tsconfig.vitest.json --composite false
...\node_modules\vue-tsc\index.js:39
throw err;
^
RangeError: Maximum call stack size exceeded
at getApparentTypeOfContextualType ...\node_modules\typescript\lib\tsc.js:71160:43)
at getContextualTypeForObjectLiteralElement ...\node_modules\typescript\lib\tsc.js:70953:18)
at getContextualType ...\node_modules\typescript\lib\tsc.js:71242:16)
at pushCachedContextualType ...\node_modules\typescript\lib\tsc.js:71291:7)
at checkObjectLiteral ...\node_modules\typescript\lib\tsc.js:71822:5)
at checkExpressionWorker ...\node_modules\typescript\lib\tsc.js:78504:16)
at checkExpression ...\node_modules\typescript\lib\tsc.js:78426:32)
at checkExpressionForMutableLocation ...\node_modules\typescript\lib\tsc.js:78185:18)
at checkPropertyAssignment ...\node_modules\typescript\lib\tsc.js:78201:12)
at checkObjectLiteral ...\node_modules\typescript\lib\tsc.js:71849:71)
Node.js v20.16.0
I got error after upgrading to latest versions of dependencies. It is a private project so, I'm not able to share a repro-repo