Closed J-Sek closed 3 weeks ago
I wouldn't mind digging deeper, debugging. Is there a way to use unminified source code?
I guess it happened on the pug template. #4652
If you are willing, you can try forking this repository and debugging it locally!
I guess it happened on the pug template. #4652
Yes, I have updated the main description. Thanks for linking existing PR... but is it a part of 2.1.2 release or not yet? I'm confused.
Yes, it was merged into 2.1.0
Try install @vue/language-plugin-pug
and adding it to tsconfig.json
:
"vueCompilerOptions": {
"plugins": [
"@vue/language-plugin-pug"
]
}
Great advice! Updating @vue/language-plugin-pug
to 2.1.2
fixes the exception.
I don't like all that plugins and things like $router
are still underlined with red squigglies, but it's a different issue.
Vue - Official extension or vue-tsc version
2.1.2
VSCode version
1.92.2
Vue version
3.4.38
TypeScript version
5.5.4, 5.4.5
System Info
Steps to reproduce
*.vue
filePug version: 3.0.3, 3.0.2
What is expected?
Type inference should work as usual - in Pug templates.
What is actually happening?
Type inference stopped working for Pug templates.
Link to minimal reproduction
Nuxt starter project with Pinia and custom plugin
Any additional comments?
Following error does not appear on the minimal repro, but is constantly thrown on my main large project.
element.ts:605
TypeScript throws
[error] TSServer exited. Code: null. Signal: SIGTERM
, but I somehow doubt it is the exact cause.