[Solved] Tsickle says “Error No inputs were found in config file” if I call it with tsconfig.json in a different directory


According to this Github issue, there is some incompatibility between tsickle and the typescript.

The probable reason can be that neither side want to admit that it is their mistake, thus none of them wants to fix it.

The solution is this: either the tsconfig.json given to the tsickle should have an absolute path, or the include: in this tsconfig.json should use an absolute path.

Considering that the .json format is not a very configurable thing (for example, you simply can’t give an include: [ __dirname + '/my/lib/**.ts' ] setting in it), the probably better option is to simply give an absolute path to the tsickle.

In my case, I simply extended an arguments: ['-p', 'src/tsconfig.json'] in my Gruntfile to arguments: ['-p', __dirname + 'src/tsconfig.json']. If you use a different build tool, your actual solution my differ from it, but it is the important part.

solved Tsickle says “Error No inputs were found in config file” if I call it with tsconfig.json in a different directory