I am not sure what the problem is yet Carlos, but it seems related to
export, in this case with missing export of jewel base classes.

The issue is that 'window.org.apache.royale.jewel' is undefined and so it
is failing to get 'org.apache.royale.jewel.View' via reflection
(getDefinitionByName call).
This happens after the View subclass is 'added to stage' and is part of the
Crux view processing that includes iterating over ancestor classes, which
is the part that is having a problem.
This *did *work in the past for the Crux TODOMVC app (I have an old release
build of that app from early May 2020 that works).
Why it is not working now is something that will probably take me some time
to figure out, and I am a bit limited in terms of availability for that at
the moment, so can't promise to spend a lot of time on it, just to try on
weekends.

When is the ApacheCon track?


On Thu, Sep 3, 2020 at 11:35 PM Carlos Rovira <[email protected]>
wrote:

> Hi,
>
> Trying new changes in the compiler this morning I noticed that
> "examples/crux/todomvc-jewel-crux" is failing in release mode (debug seems
> to work ok):
>
>
>
>
>
>
>
>
>
>
>
> *getDefinitionByName.js:34 Uncaught TypeError: Cannot read property 'View'
> of undefined    at Pv (getDefinitionByName.js:34)    at Rv.M.Jj
> (TypeDefinition.as:389)    at SD.fromTypeDefinition
> (TypeDescriptor.as:167)    at Function.mw.getTypeDescriptor
> (TypeCache.as:60)    at Function.$x.constructBean (BeanFactory.as:616)
> at Function.Yx.setUp (CruxManager.as:106)    at $x.setUpEventHandler
> (BeanFactory.as:517)    at oF.S.fireListeners (EventDispatcher.as:131)
> at dv (eventtarget.js:372)    at hC.M.Eo (JSStageEvents.as:209)*
>
> This is the example I need to prepare for the forthcoming ApacheCon event
> in one of the tracks, so I was looking at what could be the problem and
> trying to fix it.
> I reverted the compiler to try to find a point where the example works
> again, but  I couldn't.
>
> So I hope others could help me to detect what could be the cause of this
> issue.
>
> Thanks in advance for your help.
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Reply via email to