FOUND OUT WHAT WAS CAUSING IT!
Wow this is a crazy one... and I am not sure I fully understand it, as I found it by fluke.
I have a file like so:
module Systems.Services.Systems
{
export class GameSystemService
{
// stuff
}
}
Now by when trying out in typescript playground (as that had same errors as me), I accidentally deleted this one and all errors went away. Then put it back and tried deleting others and the errors stayed... So I knew it must be something to do with this...
Now I assume the error is because the module name is Systems.Services.Systems
and somehow when it compiles the declaration for this, it freaks out because it must think the 2nd Systems
is the same as the first or something.. I am not too sure what is causing Typescript to blow up on everything else, but I fixed it by renaming it to:
module Systems.Services.GameSystems
Then everything worked fine. Not sure if this is classed as a bug in typescript or a coding problem on my end, as I was not aware of any issue having a namespace which repeated the names...
Anyway that fixes it... crazy... thanks for your help guys!