question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript intellisense is disabled on template - error won't leave

See original GitHub issue

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 ? _

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

80reactions
andreassoegaardcommented, Apr 20, 2022

@Jomoflash In your jsconfig.json, put the following:

“vueCompilerOptions”: { “experimentalDisableTemplateSupport”: true }

Instead of “jsx”: “preserve”. Should make the error disappear.

37reactions
johnsoncodehkcommented, Apr 20, 2022

You should put jsx option in compilerOptions.

{
  "compilerOptions": {
    "jsx": "preserve"
  },
  "include": [...]
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the TypeScript Intellisense Template Error in Vue
I recently got this error while working on a Vue 3 project: TypeScript intellisense is disabled on template. To enable, configure `"jsx": "preserve"`...
Read more >
VS Code showing errors on template tag - Stack Overflow
Please does anyone know how to resolve this error?? TypeScript intellisense is disabled on template. To enable, configure `"jsx": ...
Read more >
TypeScript Programming with Visual Studio Code
TypeScript in Visual Studio Code. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It offers classes, modules, and interfaces ......
Read more >
IntelliSense not working in VS Code - The Windows Club
Open up VS Code. · Go to Extensions Panel (Ctrl+Shift+X). · Search for 'Intellisense + [Name of language]'. · This will show up...
Read more >
TSConfig Reference - Docs on every TSConfig option
This can cause some errors to be missed, for example: ... With .d.ts files, tools like TypeScript can provide intellisense and accurate types...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found