I have a Visual Studio Community 2017 (15.2) project with AngularJS 1.6.5 and a NancyFX server.
This is a playground for me to learn and test features I'd like to use on a real project.
All the AngularJS stuff is in Typescript files and my tsconfig.json tells the compiler to compile it all into a single JS file
angular.min.js:7 Uncaught Error: [$injector:nomod]
I noticed that outside of VS if I compiled the typescript using tsc then the order of files in my tsconfig.json was honored so I assumed a bug in the VS typescript tools.
So I went to https://www.microsoft.com/en-us/download/details.aspx?id=48593 and noticed a new version had just been released (2.4.1).
Installing this fixed the issue for me. The ts compiler now reads the files in the specified order and bundles them correctly.