Has anybody had any luck with the new modules support in VS2015 and Typescript 1.5? I wrote up a quick example that has one module "Main.ts" importing "Lib" and just calling two test functions.
When I compile this in VS2015 it gives me a compiler error on Lib.ts that I need to specify --module flag.
Lib.ts
export function Func1() {
console.log("Func1 called");
}
export function Func2() {
console.log("Func2 called");
}
Main.ts
import * as TheLib from "Lib";
module Main {
export function SomeWorkHere() {
console.log("SomeWorkHere called");
TheLib.Func1();
TheLib.Func2();
}
}
I have verified that my module system is "on". (I tried AMD, CommonJS, UMD) all with same compiler results.
SO: I tried running the tsc (Typescript Compiler) from the command line and it compiles fine!
Has anybody experienced this? Any ideas on how to bend the IDE to my will?
