tsconfig.json : //故障排除可以减少出现的问题 { "compilerOptions": { "incremental": true, "outDir": "build/lib", "target": "es5", "module": "esnext", "lib": ["dom", "esnext"], "sourceMap": true, "importHelpers": true, "declaration": true, "rootDir": "src", "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "allowJs": false, "jsx": "react", "moduleResolution": "node", "baseUrl": "src", "forceConsistentCasingInFileNames": true, "esModuleInterop": true, "suppressImplicitAnyIndexErrors": true, "allowSyntheticDefaultImports": true, "experimentalDecorators": true }, "include": ["src/**/*"], "exclude": ["node_modules", "build", "scripts"] }