나는 이미 톤수의 게시물을 읽었으며 그 중 아무 것도 나를 도왔습니다. 저는 Atom을 사용하여 반응/타이프 스크립트 응용 프로그램을 개발하고 있습니다. 이것은 내 tsconfig.json입니다아톰은 TypeScript 컴파일 컨텍스트에 포함되지 않았습니다.
"The file "C:/****/src/components/teste.tsx" is not included in the TypeScript compilation context. If this is not intended, please check the "files" or "filesGlob" section of your tsconfig.json file.at line 1 col 1
: 아톰은 나에게 오류 인쇄 유지
{
"compileOnSave": false,
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"isolatedModules": false,
"jsx": "react",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"preserveConstEnums": true,
"suppressImplicitAnyIndexErrors": true
},
"filesGlob": [
"**/*.ts",
"**/*.tsx"
]
}
을 그리고 이것은 내 teste.tsx입니다 :
import * as React from 'react';
export class Teste extends React.Component<{}, {}> {
render() {
return(
<div>
Hello, asdas
<Testando />
</div>
);
}
}
export default Teste;
내가 프로젝트를 실행할 때 브라우저 동기화는 모두 정상적으로 작동하지만 Atom의 오류가 발생하면 누군가가이를 해결하는 방법을 알고 있습니까?
(내 영어 죄송합니다) 건배
* "atom": { "rewriteTsconfig": true}'및' "files": []'속성을 * tsconfig.json *에 추가하려고 했습니까? – JeanMel
@JeanMel 이제 파일을 추가 했는가? : ""components/teste.tsx ","dependencies.tsx ","main.tsx "]'편집기는 모든 응용 프로그램 파일을 배열로 가져 오지만 오류는 계속해서 다시 시작됩니다 편집기, main.tsx 및 dependencies.tsx는이 오류를 가져 오지 않습니다. components/teste.tsx –