配置tsconfig.json报错 无法写入文件“e:/ls/my-react/src/index.js”,因为它会覆盖输入文件。 添加上outDir配置即可 { "compilerOptions": { "outDir": "build/dist", } }