Search code examples
javascripttypescripttsconfig

Syntax error in tsconfig file?


enter image description here

Not sure why, but getting a Parsing error in this tsconfig.js file I just created. Source: https://www.typescriptlang.org/docs/handbook/react-&-webpack.html

Thoughts?

{
  "compilerOptions": {
    "outDir": "./moonholdings/",
    "sourceMap": true,
    "noImplicitAny": true,
    "module": "commonjs",
    "target": "es6",
    "jsx": "react"
  },
  "include": [
    "./app/**/*"
  ]
}

Solution

  • The file extension should be .json, not .js.