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

deferred module's dependencies' dependencies can't be fetched #36

Open
ghost opened this issue Mar 28, 2011 · 0 comments
Open

deferred module's dependencies' dependencies can't be fetched #36

ghost opened this issue Mar 28, 2011 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 28, 2011

I have a deferred module "yi/top":

// Buildfile
config :yi,
:deferred_modules => [:"yi/top"]

Im loading it with:

// Main.js
SC.Module.loadModule("yi/top").

It has one dependency "yi/features" that is fetched successfully:

// Buildfile
config :"top",
:inlined_modules => [
    :"yi/features"
]

But that "yi/features" dependency "yi/features/todos" can't be fetched (technically because it is not listed in SC.MODULE_INFO).

// Buildfile
config :"features",
:inlined_modules => [
    :"yi/features/todos"
]

I wonder why Abbot has not listed this as a module in SC.MODULE_INFO since it is a dependency of another one.

If I change the Buildfile for "yi/top" to:

// Buildfile
config :"top",
:inlined_modules => [
    :"yi/features",
    :"yi/features/todos" // Added this line
]

Then it works because now "yi/features/todos" is in SC.MODULE_INFO.

This seems like a bug preventing nested module dependencies getting loaded.

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

0 participants