Intellijに問題があり、tsconfig.json
ファイルが見つかりません。私が持っている私のtsconfig.json
ファイルでIntellijがtsconfig.jsonを見つけることができません
/ui
/src (all typescript files in here)
tsconfig.json
:マイフォルダ構造はこれです
{
"compilerOptions": {
"outDir": "build/dist",
"module": "esnext",
"target": "es5",
"lib": ["es7", "dom"],
"sourceMap": true,
"allowJs": true,
"jsx": "react",
"moduleResolution": "node",
"rootDir": "src",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": false,
"suppressImplicitAnyIndexErrors": true,
"experimentalDecorators": true,
"types": [
"node",
"webpack-env"
]
},
"exclude": [
"node_modules",
"build",
"scripts",
"acceptance-tests",
"webpack",
"jest"
],
"include": [
"src/**/*"
]
}
のIntelliJは、コマンド+ Bと私のsrcフォルダに "SRC" から移動する方法を知っている(宣言に行きます)。私がIntellijを閉じてそれを開き、Typescriptで "compile all"をクリックすると、すべてがJavascriptにコンパイルされます。次に、エラーError: Cannot find parent 'tsconfig.json'
を報告します。その後もTypescriptにコンパイルされますが、「すべてコンパイル」をクリックすると決してコンパイルされません。
これはIntellijのバグですか?それは1つのようです。 Intellij 2017.3にアップグレードしたばかりですが、この問題が以前に発生していたかどうかはわかりません。
Typescriptバージョンは2.6.2ですが、2.5.3を使用しても同じ問題が発生しました。
この問題は私のプロジェクトではないことを知っておいてください! Intellijはまだ使用されていない機能として使用されていますが... – CorayThan
チップをありがとう。私はこのチケットhttps://youtrack.jetbrains.com/issue/IDEA-184264を開設しました。 –