Warning: Cannot find parent tsconfig.json

前端 未结 4 1641
不思量自难忘°
不思量自难忘° 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:17

    None of the above solutions worked for me, but I did stumble onto a tsconfig change that did. It seems the IDE is using different rules that tsc.

    This did NOT work:

    "include": ["./typings", "./src", "./test"],
    

    This did work:

    "include": ["./typings/**/*", "./src/**/*", "./test/**/*"],
    

提交回复
热议问题