我正在使用 Visual Studio 2019 开发 web 应用程序,后端使用 C#,前端使用 Typescript 和 Reactjs。
我遇到的问题是程序构建和编译,但我在 tsx 文件中所做的更新不会在相应的 js 文件中更新。 tsx 文件似乎无法编译
我的错误列表中没有错误,只是来自 C# 的警告。当我更改 cs 文件中的代码时,后端会更新。
当我直接更新js文件时,webapp更新。例如,添加警报现在将显示在网络应用中。
这是我的 tsconfig 文件。
{
"compilerOptions": {
"target": "ES6",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
"lib": [
"ES2016",
"dom"
],
"skipLibCheck": false
},
"include": [
"src"
]
}
我在互联网上找不到太多关于这方面的信息,而且很难知道该怎么做,因为没有错误。
任何建议将不胜感激。谢谢。