After integrating typescript into my project and setting up a tsconfig.json
, I decided to keep the existing .js files as they are for now. To achieve this, I added allowJS
set to true
in the tsconfig.
However, running tsc
yielded no results, and even using tsc -p .
did not work either. The version of Typescript being used is 3.8.3. As a workaround, I attempted to compile a single file:
tsc src/index.js
error TS6504: File 'src/index.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
It seems like the tsconfig file is not being recognized at all. What could be causing this issue? My operating system is Windows.