Error: No inputs were found in config file

Hi,

I’m using the sonar-scanner Linux client in combination with SonarCloud and I’m getting this error during the analysis of a JavaScript/TypeScript based project:

INFO: Creating TypeScript program
INFO: TypeScript configuration file /home/myuser/git/myproject/e2e/tsconfig.json
ERROR: Error: No inputs were found in config file '/home/myuser/git/myproject/e2e/tsconfig.json'. Specified 'include' paths were '["../node_modules/e2e/types","**/*.*.ts"]' and 'exclude' paths were '[]'.
ERROR:     at createProgramOptions (/home/myuser/git/myproject/.scannerwork/.sonartmp/bridge-bundle/package/lib/jsts/src/program/program.js:96:15)
ERROR:     at createProgram (/home/myuser/git/myproject/.scannerwork/.sonartmp/bridge-bundle/package/lib/jsts/src/program/program.js:127:28)
ERROR:     at createAndSaveProgram (/home/myuser/git/myproject/.scannerwork/.sonartmp/bridge-bundle/package/lib/jsts/src/program/program.js:188:21)
ERROR:     at MessagePort.<anonymous> (/home/myuser/git/myproject/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:92:86)
ERROR:     at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
ERROR:     at exports.emitMessage (node:internal/per_context/messageport:23:28)
ERROR: Failed to create program: No inputs were found in config file '/home/myuser/git/myproject/e2e/tsconfig.json'. Specified 'include' paths were '["../node_modules/e2e/types","**/*.*.ts"]' and 'exclude' paths were '[]'.

I’ve searched other posts regarding this error message but to no avail.

Any idea?

Hi,

Welcome to the community!

Maybe this is a dumb question, but can you confirm that your project contain JavaScript, TypeScript or CSS files?

Could you provide the full analysis log (that you excerpted above)?

 
Thx,
Ann