TS-Node: Could not find sourceFile TS-Node: Could not find sourceFile typescript typescript

TS-Node: Could not find sourceFile


I have a feeling this has to do with circular dependencies. Especially with the answer from @Brenne saying:

Changing the order of the imports helped.

These kind of inexplicable errors have always tended to be circular dependencies in my experience.

I'm only familiar with the webpack plugin to detect these. However, you can play around with removing the require and seeing if it builds properly. From there, remove pieces other requires/imports from the './v1/route/Routes' file to see if any of those are causing the circular dep


Im not to familiar with tsc because i always use babel with webpack, but i think u need to enable the allowJs option if u want to compile the js to ts.