Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal modules not loaded until file opened #67

Open
englercj opened this issue Aug 18, 2014 · 0 comments
Open

Internal modules not loaded until file opened #67

englercj opened this issue Aug 18, 2014 · 0 comments

Comments

@englercj
Copy link

I have a file that looks like this:

src/ts/Module.ts:

module MyModule {
    export class MyClass {

        constructor() {
            var boot = new States.Boot();
        }

    }
}

and another

src/ts/states/Boot.ts:

module MyModule.States {
    export class Boot {

        constructor() {
        }

    }
}

The problem I am encountering is that if I open Module.ts I have an error saying it cannot resolve States.Boot. If I then open the Boot.ts file, the other file will resolve the symbol correctly. Unfortunately, this means every time I open this project in sublime I basically have to open all files so that internal module usage works properly.

This happens on the dev branch. I don't want to use explicit requires (var Boot = require(...)). Is there any way whatever process needs to run to load each module's data can happen on project load instead of lazily when the file is opened?

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

No branches or pull requests

1 participant