0
请注意我在tsconfig上遇到奇怪的错误?这是没有原子的。据我可以告诉文件是好的,但我可能会错过一些东西。仍然错误消息不是太有用。 (顺便说一下,在Atom中它也有些奇怪,当我查看随附的file1.ts时,它显示tsconfig.json文件无效的错误,但是当我查看tsconfig.json在原子不同的选项卡文件,它说,没有错误)Typescript报告它不能打开tsconfig,但它就在那里。怎么来的?
所以从等式中删除原子我跑它没有原子,看到这里显示的结果:
modu(master)> tsc
error TS6050: Unable to open file 'tsconfig.json'.
modu(master)> ls -l tsconfig.json
-rw-r--r-- 1 pitosalas staff 267 Jul 9 21:27 tsconfig.json
modu(master)> cat tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": false,
"outDir": "built/",
"sourceMap": false,
"target": "es5",
},
"filesGlob": [
"./**/*.ts"
],
"files": [
"./file1.ts"
]
}
modu(master)>
“它显示了一个错误,该tsconfig.json文件是无效的” <原子打字稿错误应该被“无法JSON.parse该项目文件“,这将引导你走向正确的方向 – basarat