tsconfig.json 文件夹中的相对文件路径

Relative file path in folders in tsconfig.json

我已将根文件夹创建为 "TypescriptProgramming",我的 tsconfig.json 就位于其中。还有另一个名为 "chapter1" 的文件夹,其中包含另一个名为 "minfunction" 的文件夹。 minfunction 文件夹包含 "minfunction.ts"。我正在 Ubuntu 16.04 上使用 typescript 版本 1.8.10 和 nodejs 版本 6.5.0。

项目结构如下(tsconfig在chapter1文件夹外):

当我编译项目时,出现错误 error TS6053: "chapter1/minfunction/minfunction.ts" not found。任何人都可以让我知道我哪里出错了吗?我缺少什么?

您使用的操作系统具有区分大小写的文件系统,您的 file/directory 名称中的大小写不一致:MinFunction 在 [=12] 中拼写为 Minfunction =].