Я уже прочитал тонны сообщений os, и ни один из них не помог мне. Я использую Atom для разработки приложения для реагирования/ввода текста. Atom продолжает печатать мне ошибку:Atom не включен в контекст компиляции 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
Это мой tsconfig.json:
{
"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;
Когда я запустить проект в browser-sync все работает нормально, но эти ошибки в Atom анонимны, у кого-то есть ключ к решению этого?
(Извините за мой английский) Приветствия
Вы пытались добавить в свой * tsconfig.json * следующие атрибуты: '" atom ": {" rewriteTsconfig ": true}' и '" files ": []'? – JeanMel
@JeanMel Добавил ли он '' файлы ': ["components/teste.tsx", "dependencies.tsx", "main.tsx"] 'редактор приносит все файлы приложений в массив, но ошибка сохраняется даже при перезапуске редактор, main.tsx и dependencies.tsx не доставляют эту ошибку ТОЛЬКО компоненты/teste.tsx –