3
respostas

Não compila

Quando todo npm run compile dá o seguinte erro:

alurabank@1.0.0 compile C:\Users\daniel.silva\Desktop\01-alurabank tsc

error TS18003: No inputs were found in config file 'C:/Users/daniel.silva/Desktop/01-alurabank/tsconfig.json'. Specified 'include' paths were '["app/ts/*/"]' and 'exclude' paths were '["app/js"]'. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! alurabank@1.0.0 compile: tsc npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alurabank@1.0.0 compile script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\daniel.silva\AppData\Roaming\npm-cache_logs\2019-10-31T22_06_16_418Z-debug.log PS C:\Users\daniel.silva\Desktop\01-alurabank>

3 respostas

Fala ai Daniel, tudo bem? O problema pode estar no seu tsconfig.json, com as configurações atuais o TypeScript não achou nenhum arquivo.

Verifica se o mesmo contém o include e exclure configurados corretamente.

Abraços e bons estudos.

Olá Matheus. Tudo bem sim e por ai?

meu arquivo tsconfig.json está com include.

{ "compilerOptions": { "target": "es6", "outDir": "app/js", "noEmitOnError": true }, "include": [ "app/ts/*/" ] }

Fala Daniel, consegue compartilhar o projeto comigo? Assim eu consigo simular o problema por aqui e analisá-lo com mais calma.

Fico no aguardo.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software