Closed mityaua closed 1 month ago
Please try to execute your type-checks using -p tsconfig.app.json
. Does that help?
Please try to execute your type-checks using
-p tsconfig.app.json
. Does that help?
You are right. With "typescript": "~5.5.4" and tsconfig.app everything is fine. But also with "typescript": "~5.4.5" and tsconfig.vitest all checks are fine too.
Check pnpm create vue@latest
for a well-defined tsconfig setup.
Vue - Official extension or vue-tsc version
2.0.29
VSCode version
1.91.1
Vue version
3.4.35
TypeScript version
5.5.4
System Info
Steps to reproduce
Add "target": "ESNext", "lib": ["ESNext", "DOM"] to tsconfig.app.json: and use anywhere .replaceAll() method
Rest of the TS configuration:
tsconfig.json:
tsconfig.node.json
tsconfig.vitest.json
What is expected?
What is actually happening?
npm run type-check
(vue-tsc --noEmit -p tsconfig.vitest.json --composite false
) and also app build fails with:Node.js v20.16.0
Link to minimal reproduction
No response
Any additional comments?
BUT sometimes it happens without that target and lib options. I open the project, run npm run type-check, and see RangeError. Then I run type-check again and there are no errors. Maybe this problem is related to TS version https://github.com/microsoft/TypeScript/issues?q=is%3Aissue+Maximum+call+stack+size+exceeded+is%3Aopen cuz seems TS 5.4.5 works much better.
Unfortunately my repo is private.
Maybe related to https://github.com/vuejs/language-tools/issues/2689