ReferenceError: Error #1065: Variable IInjector is not defined.

Joe Wyatt's Avatar

Joe Wyatt

01 Feb, 2012 06:33 PM

Using RobotLegs 1.4.0 with module and Flex 4.5. Built multiple module application with no problems. Attempted to place thin application (no robotlegs or any links to the other modules) as a loader to all of the other modules. The getDefinition call is pointing to the top level app domain and failing because there are no definitions there. If I reference the injector or the injected classes in the application they are found. Their definitions really should only be found in the lower level modules.

I've attempted fixes in the modules' context's constructors of :

        super(contextView, true, parentInjector, contextView["moduleFactory"].info().currentDomain);

to no avail.

Any ideas?

  1. Support Staff 1 Posted by Shaun Smith on 02 Feb, 2012 03:42 PM

    Shaun Smith's Avatar

    Hello Joe,

    Have you tried overriding getApplicationDomainFromContextView in mvcs.Context:

    Perhaps you can jig it to pull out the correct domain?

  2. 2 Posted by Joe Wyatt on 02 Feb, 2012 10:33 PM

    Joe Wyatt's Avatar

    That seems to have given me a good start, Shaun. Thanks a ton.

  3. Ondina D.F. closed this discussion on 10 Feb, 2012 11:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac