Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

400
Vistas
Why typescript keep giving me No inputs were found in config file error?

Why typescript keep giving me No inputs were found in config file error?

When I use tsconfig.json in vscode, but when I try to build it, it gives me a 'No inputs were found in config file' error:

Terminal:

error TS18003: No inputs were found in config file '/Users/user/Desktop/projects/ts/.vscode/tsconfig.json'. 
Specified 'include' paths were '["/Users/user/Desktop/projects/ts/mathweb/app.ts"]' and 'exclude' paths were '["/Users/user/Desktop/projects/ts/mathweb/app.ts"]'.


Found 1 error.

The terminal process "zsh '-c', 'tsc -p /Users/user/Desktop/projects/ts/.vscode/tsconfig.json'" failed to launch (exit code: 2).

Terminal will be reused by tasks, press any key to close it.

And I search on SO, and some answer told me to create a empty file, so I did: enter image description here

But it doesn't work. Other answer told me to use rootDir at tsconfig.json, and I did, and also doesn't work.

It make me confused. I'm not familiar with typescript and I just want ts compile to specified directory, and that is what happened right now.

I'm using vscode ide, I'm not sure if that is IDE's problem,or could also be my fault

tsconfig:

{
"compilerOptions": {

    "outDir": "/Users/user/Desktop/projects/ts/mathweb/app.ts",
    "rootDir": "./mathweb"

},

"include": [
    "/Users/user/Desktop/projects/ts/mathweb/app.ts"
]
,

"exclude": [
    "/Users/user/Desktop/projects/ts/mathweb/app.ts"
]

}

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

include expects relative path so and you added app.ts in exclude

{
"compilerOptions": {

    "outDir": ".",
    "rootDir": "."

},

"include": [
    "./app.ts"
]

}


Edit: as you don't have tsconfig on root dir try this

{
    "compilerOptions": {
    
        "outDir": "../dist",
        "rootDir": "."

    },

    "include": [
        "./../mathweb/"
    ]
}

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda