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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

circular dependency problem with requirejs #46

Closed
cmichaelgraham opened this issue Apr 3, 2015 · 3 comments
Closed

circular dependency problem with requirejs #46

cmichaelgraham opened this issue Apr 3, 2015 · 3 comments
Assignees
Labels

Comments

@cmichaelgraham
Copy link
Contributor

thanks to @colindembovsky, dragon slayer 馃槃, for finding the issue causing the problem (the requirejs loader fails to load 0.10.0 and later aurelia apps)

we need help identifying a plan to resolve the issue.

in requirejs, circular dependency injects are undefined, which is the symptom here.

If you define a circular dependency ("a" needs "b" and "b" needs "a"), then in this case when "b"'s module function is called, it will get an undefined value for "a". "b" can fetch "a" later after modules have been defined by using the require() method (be sure to specify require as a dependency so the right context is used to look up "a")

view-engine requires module-analyzer
module-analyzer requires custom-element
custom-element requires view-engine

so you see it's circular 馃槃

@EisenbergEffect
Copy link
Contributor

I will handle this by updating the compiler and building for the next release.

@cmichaelgraham
Copy link
Contributor Author

馃憤

@EisenbergEffect
Copy link
Contributor

Fixed in next release.

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

No branches or pull requests

2 participants