Aurelia & Typescript injection and inheritance Aurelia & Typescript injection and inheritance typescript typescript

Aurelia & Typescript injection and inheritance


Ok, so the Typescript compiler finds file1 because it is in the .csproj file so it doesn't need the full path, but at runtime, the Aurelia framework finds the file (after the typescript code is transpiled) something like localhost/file1.js. So you have 2 possibilities: either create a tsd.json in the typings folder (assuming you are using AMD module system) in which to set the absolute paths for your typescript definitions or always write the full path when importing custom typings.