Answers for "can not include json file tsconfig.json"

0

typescript tsconfig.json file

{
  "compilerOptions": {
    "module": "esnext",
    "target": "es2016",
    "jsx": "react-jsx",
    "strictFunctionTypes": true,
    "sourceMap": true,
    "outDir": "./build",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true
  },
  "exclude": ["node_modules", "**/node_modules/*"],
  "include": ["src", "electron/renderer.ts"]
}
Posted by: Guest on July-23-2021
0

error: you have both a tsconfig.json and a jsconfig.json. if you are using typescript please remove your jsconfig.json file.

Having both jsconfig.json and tsconfig.json is not necessary, the Typescript 
Documentation cites:

The presence of a tsconfig.json file in a directory indicates that the directory 
is the root of a TypeScript project. 
The tsconfig.json file specifies the root files and the compiler options 
required to compile the project.

JavaScript projects can use a jsconfig.json file instead, which acts almost 
the same but has some JavaScript-related compiler flags enabled by default.

So in typescript is better to have just the tsconfig.json file
Posted by: Guest on February-07-2022

Code answers related to "can not include json file tsconfig.json"

Code answers related to "Javascript"

Browse Popular Code Answers by Language