Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Plugin gives invalid errors when importing modules #13

Open
FunkMonkey opened this issue Feb 23, 2013 · 2 comments
Open

Plugin gives invalid errors when importing modules #13

FunkMonkey opened this issue Feb 23, 2013 · 2 comments

Comments

@FunkMonkey
Copy link

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.

@derekcicerone-zz
Copy link

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

@hansrwindhoff
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants