sublime-typescript icon indicating copy to clipboard operation
sublime-typescript copied to clipboard

Plugin gives invalid errors when importing modules

Open FunkMonkey opened this issue 12 years ago • 2 comments

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.

FunkMonkey avatar Feb 23 '13 10:02 FunkMonkey

I'm seeing the same issue - everything else seems to be working really nicely (the auto-complete is really nice!)

derekcicerone-zz avatar Mar 19 '13 02:03 derekcicerone-zz

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...

hansrwindhoff avatar Mar 25 '14 16:03 hansrwindhoff