Error tsconfig.json: Build: No inputs were found in config file — ¿cómo solucionarlo?
¡Hola a todos! Soy nuevo en TypeScript y uso Visual Studio 2015 con ASP.NET Core. Creé un proyecto, agregué un archivo `tsconfig.json` en la raíz, pero al compilar obtengo el error:
> Build: No inputs were found in config file. Specify 'include' or 'files' property, or remove 'rootDir' to allow all files in the 'src' folder to be used.
Aquí está mi `tsconfig.json`:
```json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"rootDir": "src",
"outDir": "dist",
"strict": true
}
}
```
En la carpeta `src` tengo un archivo `app.ts`:
```typescript
function greet(name: string): string {
return `Hello, ${name}!`;
}
console.log(greet("World"));
```
Pero TypeScript no ve este archivo. Intenté reiniciar el estudio, eliminar y crear `tsconfig.json` de nuevo — no ayuda. Díganme, ¿qué estoy haciendo mal? ¿Por qué el compilador no encuentra los archivos de entrada, aunque están en la carpeta `src`? ¡Gracias de antemano!
<<>>
Causa del error
El error se