Open pdhoopr opened 4 months ago
Thank you for your report and collection of relevant information! https://github.com/vuejs/language-tools/commit/86e38db1a531b1cce24814da4a5c42aef75d987b#diff-93ac10dff6acb9af8511a96c6ef3bdabf647f4ed0a85a9fe1566a0cf320cf44aR157 is to fix the TS type of parameterless event. I have not yet come up with an alternative way of writing virtual code. Unfortunately, we may have to wait for https://github.com/microsoft/TypeScript/pull/58440 to be merged.
Vue - Official extension or vue-tsc version
vue-tsc@2.0.19
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:
vue-tsc@2.0.19
, 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.vue-tsc@2.0.20
, 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!!