Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
You need to add
"jsx": "preserve"
to your config under the
compilerOptions
section. This is slightly different depending on how your project is set up.
This is the
officially recommended solution
.
If you're using a
.tsconfig
it will look like this:
"compilerOptions": {
"jsx": "preserve"
With Nuxt 3 your
.tsconfig
will look closer to this:
// https://v3.nuxtjs.org/concepts/typescript
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"jsx": "preserve"
If you're using a
.jsconfig
then it will be more like this:
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"jsx": "preserve"
"include": ["src/**/*"]
I wrote a short blog post on solving this here:
michaelnthiessen.com/typescript-intellisense-error
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.