I\'m getting started with TypeScript and at moment I\'m following the TypeScript in 5 minutes guide. I\'m receiving a strange warning in Visual Studio Code when I hover the
If you have both the src file (typescript) and the transpiled file (javascript) in the same directory and open up the javascript file in VS Code then you'll get the error. Output the transpiled file into a directory and it will not error. Use the --outDir flag:
tsc --outDir ./dist greeter.ts
Got this problem in version 1.26.1 of VS Code. Generating the tsconfig.json file did not make the error go away for me.