typescriptwindows-10typescript1.6

Windows 10 tsc error TS5007: Cannot resolve referenced file: tsconfig.json


After moving to fresh windows 10 PC i have stuck with error.

TS5007: Cannot resolve referenced file: tsconfig.json

tsc stop working with tsconfig.json, i can not force it to find tsconfig.json, i call it with --p/--project flag and specify full path - nothing helped.

Where is a problem? And how it can be solved?


Solution

  • C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe
    C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.js
    

    for some reason the typescript was installed separately (not via npm) there, and that exe file replaced new one from npm.

    i removed that folder ("C:\Program Files (x86)\Microsoft SDKs\TypeScript") and problem was fixed.