Pratik Gaikwad Pratik Gaikwad - 3 months ago 31
Node.js Question

Relative file path in folders in tsconfig.json

I have created root folder as "TypescriptProgramming" in which my tsconfig.json resides. There is another folder called "chapter1" containing another folder named "minfunction". The minfunction folder contains "minfunction.ts". I'm working with typescript version 1.8.10 and nodejs version 6.5.0 on Ubuntu 16.04.

The project structure is as below(tsconfig is outside chapter1 folder):

enter image description here

When I'm compiling project, it's giving me error error TS6053: "chapter1/minfunction/minfunction.ts" not found. Can anyone please let me know where I am going wrong? And what I am missing?

Answer

The operating system you are using has a case-sensitive file system and the case in your file/directory names is not consistent: MinFunction is spelled Minfunction in the tsconfig.json.

Comments