Warning: Cannot find parent tsconfig.json

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

    problem is specific to TypeScript version being used (2.1.x); it is fixed in 2016.3. 2 EAP

    Note: this answer refers to the issue specific to IDE (WebStorm, PHPStorm, IDEA) version 2016.3: it didn't work well with TypeScript 2.1.x, showing false warnings. If you see similar message (Cannot find parent tsconfig.json) in other IDE versions, it is likely a problem with your configuration: such messages are displayed if currently edited .ts file is not included in any tsconfig.json.

提交回复
热议问题