Warning: Cannot find parent tsconfig.json

前端 未结 4 1642
不思量自难忘°
不思量自难忘° 2021-02-18 22:53

I would like to fix the warning:

Warning: Cannot find parent tsconfig.json

in the TypeScript Errors tab in Intell

4条回答
  •  爱一瞬间的悲伤
    2021-02-18 23:15

    Try to set the "version number" to your tsconfig.json file.

    {
        "version": "2.1.4",
        "compilerOptions": {
            "target": "es5",
            "module": "commonjs",
            "moduleResolution": "node",
            "jsx": "react",
            "allowJs": false,
            "isolatedModules": false,
            "experimentalDecorators": true,
            "emitDecoratorMetadata": true,
            "declaration": true,
            "noImplicitAny": false,
            "noImplicitUseStrict": true,
            "noEmitHelpers": false,
            "removeComments": true,
            "noLib": false,
            "sourceMap": true,
            "inlineSources": true,
            "preserveConstEnums": true,
            "allowSyntheticDefaultImports": true,
            "suppressImplicitAnyIndexErrors": true,
            "rootDir": "./src",
            "outDir": "./lib"
        },
        "include": [
            "./src/**/*"
        ],
        "compileOnSave": true,
        "atom": {
            "rewriteTsconfig": false
        }
    }
    

提交回复
热议问题