0

Basically the title.

I had deliberately not enabled JSX support during initialization of a new Vue Project. Is there a way to enable JSX support. I get these type of warnings:

enter image description here

They don't effect while serving but still i think what i did was a mistake. Is their a way to enable JSX support now? Or will I have to initialize the project once again?

Vivek Hotti
  • 69
  • 2
  • 9

1 Answers1

0

This is actually a common problem in React too. Maybe its related enabling JSX support during installation ? I don't know. As @tony19 said he also installed disbaling JSX support and still didn't get any errors.

We can solve this issue by adding the following code in our jsconfig.json:

{
  "compilerOptions": {
    "jsx": "preserve"
  }
}

For further reference refer: https://stackoverflow.com/a/72332435/14064881

Vivek Hotti
  • 69
  • 2
  • 9