sublime-typescript
sublime-typescript copied to clipboard
Plugin gives invalid errors when importing modules
Having two files like this:
test.ts
export class Test {
};
main.ts
import TestModule = import("./test");
will lead to the following error in main.ts: "A module cannot be aliased to a non-module type".
The two files will compile fine using Visual Studio or via tsc-command-line.
I'm seeing the same issue - everything else seems to be working really nicely (the auto-complete is really nice!)
I am seeing this too sometimes, but only in windows (not in Ubuntu) and there is a previous error saying that it cant find the file to be imported (when you push ctrl+shift+e), After restarting sublime the error sometimes went away...