I have created a new React application with the command: "npx create-react-app poi-search --template typescript".
When opening the files, ESLint asked me for permission. After that there were only errors. Picture here: 
I have the latest version of VSCode.
Here my tsconfig:
{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react"
  },
  "include": [
    "src"
  ]
}
This is the automatically generated configuration.
This seems to be a VSCode's bug. Here is a few ways you could use to fix it.
reload. Then select Developer: Reload Window to reload VSCode.All worked for me.
I got the same issue with NextJS app in VSCode, my solution is:
That worked for me!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With