Search code examples
reactjsvscode-jsconfig

I'm trying to setup jsconfig.json but i get this error


error screenshot

Help I got this error when try to setup jsconfig.json, how to solve this problem? this my jsconfig.json :

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "sourceMap": true,
    "baseUrl": ".",
    "paths": {
      "helper": [
        "src/./helper"
      ],
      "libraries": [
        "src/./libraries"
      ],
    }
  },
  "include": ["src"]
}

Solution

  • Invalid JSON, you've a trailing comma.

    {
        "compilerOptions": {
            "module": "commonjs",
            "target": "es6",
            "sourceMap": true,
            "baseUrl": ".",
            "paths": {
                "helper": [
                    "src/./helper"
                ],
                "libraries": [
                    "src/./libraries"
                ] // <-- no comma
            }
        },
        "include": ["src"]
    }