在构建或运行Reaction项目时,我遇到以下错误:
无法分析tsfig.json.请确保它包含语法正确的JSON. 详细信息:错误TS5023:未知的编译器选项‘AllowImportingTsExages’.
我对错误的可能原因做了一些研究,但这些都帮不了我:
对于上下文:
- 我确保在我的tsconfig.json号档案中包括"noEmit": true号期权;
- 我试着添加了另一个选项,现在我记不起来了;
- 排除"allowImportingTsExtensions"甚至是不可能的,因为我在项目中需要它.
以下代码片段代表我的tsconfig.json文件:
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
"strictNullChecks": false,
"allowImportingTsExtensions": true
},
"include": [
"src"
]
}
有人能帮我改正这个错误吗?