vue-tsc
CLI rest params runtime error in version 2.0.19
and beyond
#4578
Labels
vue-tsc
CLI rest params runtime error in version 2.0.19
and beyond
#4578
Vue - Official extension or vue-tsc version
[email protected]
VSCode version
1.91.1
Vue version
3.4.31
TypeScript version
5.4.5
System Info
Steps to reproduce
Unfortunately, I'm not able to track down exactly what in our code is triggering the error, but I can provide some additional context/learnings I've come across. It seems like it might be related to rest parameters:
[email protected]
, this type change was made to event handlers.tsc
runtime, which has an open issue and potential fix, but hasn't been resolved yet.vue-tsc
was not surfacing runtime errors, so after upgrading to2.0.19
, the type checker was encountering the runtime error above and silently erroring out itself without reporting any type errors. This gave the appearance that it finished successfully, so we didn't catch it right away.[email protected]
, this change was made to surface runtime errors, and so now our type-checking errors out as it should.What is expected?
vue-tsc
successfully runs to completion, reporting errors along the way (if any).What is actually happening?
vue-tsc
encounters a runtime error fromtsc
and errors out. The stack trace logged to the console is:Link to minimal reproduction
No response
Any additional comments?
Based on the details provided in the steps to reproduce section, I can't tell if there's actually anything that can be done from a
vue-tsc
perspective, or if this needs to be solved on thetsc
side.Thank you!!
The text was updated successfully, but these errors were encountered: