language-tools: TypeScript intellisense is disabled on template - error won't leave
According to the screenshot here, I have tried every means to remove this error “TypeScript intellisense is disabled on template, you can config "jsx": "preserve"
in tsconfig or jsconfig to enable it, or config vueCompilerOptions.experimentalDisableTemplateSupport
to disable this prompt.volar”.
Can anyone help with this please ?
_
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (4 by maintainers)
Commits related to this issue
- Fix: Improve prompt on TS intellisense in template In thread https://github.com/johnsoncodehk/volar/issues/1219 Invited by @johnsoncodehk to submit a PR for the improved prompt message to user, to... — committed to darrelfrancis/volar by darrelfrancis 2 years ago
- settings: VSCodeが警告を出すので黙らせる。 https://github.com/johnsoncodehk/volar/issues/1219 を参考。 — committed to kazuhito-m/rdram by kazuhito-m 2 years ago
@Jomoflash In your jsconfig.json, put the following:
“vueCompilerOptions”: { “experimentalDisableTemplateSupport”: true }
Instead of “jsx”: “preserve”. Should make the error disappear.
You should put
jsx
option incompilerOptions
.Thanks @johnsoncodehk Can you kindly explain the difference between adding this
and
@johnsoncodehk thanks for providing the solution here. I also wrote about it here since it seems many people (myself included) keep running into this and are getting confused.
Why does this come up if Vue projects don’t even rely on the
jsx
transform feature?I tried both. The error is still there 😕 Tried even to reboot vs code, but it didn’t help.
thanksss! This has been bugging me for quite awhile now