Unfortunately the js release version does not work. So I am yet to test it.
It compiles but when running it I get an error which I have no idea how to
debug since the code is mimified.

Here is the log

FrontEnd.js:1491 Uncaught TypeError: Cannot read properties of undefined
(reading 'generic')
    at gy (FrontEnd.js:1491)
    at cQ.o (FrontEnd.js:2003)
    at cQ.B (FrontEnd.js:2003)
    at uQ (FrontEnd.js:2064)
    at SA (FrontEnd.js:2062)
    at dz (FrontEnd.js:2065)
    at SQ.DN.N (FrontEnd.js:1640)
    at new SQ (FrontEnd.js:2156)
    at index.html:33
gy @ FrontEnd.js:1491
cQ.o @ FrontEnd.js:2003
cQ.B @ FrontEnd.js:2003
uQ @ FrontEnd.js:2064
SA @ FrontEnd.js:2062
dz @ FrontEnd.js:2065
DN.N @ FrontEnd.js:1640
SQ @ FrontEnd.js:2156
(anonymous) @ index.html:33


Any idea how to debug js release code ?

For this app, I wrote two stand alone libraries that are registered as
maven dependencies in the main application. I think this error is from one
of the stand alone libraries. Is there some setting I need to change when
compiling those libraries for js release ?

Note: js debug works fine, no error at all.


On Thu, Dec 23, 2021 at 5:36 PM Piotr Zarzycki <[email protected]>
wrote:

> Hi Roman,
>
> Definitely change SDK to newest one - there is a lot improvements. In case
> of your test I think you should use what was produced in bin/js-release -
> does that version load 20 second ?
>
> If you are using Maven it should be a matter of changing version in pom.
>
> Thanks,
> Piotr
>
> czw., 23 gru 2021 o 17:23 Roman Isitua <[email protected]> napisaƂ(a):
>
>> Thanks. My team is very new to royale. We have no prior adobe flex
>> experience. We are using royale material design.
>>
>> How many seconds does it take to load at your end ?
>>
>> I will check my internet access speed but I have to get the app to load
>> with the internet access speed I am using. Most users will likely be using
>> similar internet
>> connections.
>>
>>
>> I am using maven. To perform an upgrade to version 0.9.8 is it as simple
>> as changing the version number in my pom to  0.9.8 ?
>>
>> Also, is there a major performance improvement in load time in the newer
>> version ?
>>
>>
>>
>>
>>
>>
>> On Thu, Dec 23, 2021 at 5:10 PM Maria Jose Esteve <[email protected]>
>> wrote:
>>
>>> Hi Roman, I like the design you have chosen, it looks great.
>>>
>>> It doesn't take me 20 seconds to load, are you sure it's not a question
>>> of your access?
>>>
>>>
>>>
>>> I see you are still connected to SDK 0.9.7, couldn't you get it to work
>>> with the latest one?
>>>
>>>
>>>
>>> Hiedra
>>>
>>>
>>>
>>> *De:* Roman Isitua <[email protected]>
>>> *Enviado el:* jueves, 23 de diciembre de 2021 16:22
>>> *Para:* [email protected]
>>> *Asunto:* Load time is very slow
>>>
>>>
>>>
>>> Hi Everyone,
>>>
>>>
>>>
>>> I am currently working on an app. The app is still in development. I
>>> have deployed it to a test server online.
>>>
>>>
>>>
>>>  The app can be access on this url below
>>>
>>>
>>>
>>>  http://140.238.127.236:8081/spaciofm/js-debug/index.html
>>>
>>>
>>>
>>>  I noticed that the app loading time is slow. It takes up to 20 seconds
>>> to load the application. I have checked to see other royale apps
>>>
>>> e.g the adobe spectrum demo, jewel tour de jewel demo and the mdl
>>> example demo. Those apps load much faster.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> My maven compilation settings is as follows
>>>
>>>
>>>
>>>   <royale.showbindingWarnings>-compiler.show-binding-warnings=false;</
>>> royale.showbindingWarnings>
>>>
>>>         <royale.sourceMapSettings>-source-map=true;</
>>> royale.sourceMapSettings>
>>>
>>>         <royale.jsDefaultInitializers>-js-default-initializers=true;</
>>> royale.jsDefaultInitializers>
>>>
>>>         <royale.jsDynamicAccessUnknownMembers>
>>> -js-dynamic-access-unknown-members=true;</
>>> royale.jsDynamicAccessUnknownMembers>
>>>
>>>         <royale.targets>JSRoyale</royale.targets>
>>>
>>>         <royale.debug>true</royale.debug>
>>>
>>>         <royale.mxroyale.css>
>>> -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-js.swc:defaults.css;
>>> </royale.mxroyale.css>
>>>
>>>
>>>
>>>
>>>
>>> I will like to ask what could be the reason for the slow load times ?
>>>
>>>
>>>
>>> As the app is currently in development is there a need to compile to
>>> release mode to get fast load times ?
>>>
>>>
>>>
>>> The file size of the debug version is currently 7mb. I am deploying it
>>> in a spring boot embedded tomcat server.
>>>
>>>
>>>
>>>
>>>
>>> Any ideas ? I would like to tackle this early in the development phase.
>>>
>>>
>>>
>>> Regards,
>>>
>>>
>>>
>>> Roman,
>>>
>>>
>>>
>>>
>>>
>>
>
> --
>
> Piotr Zarzycki
>

Reply via email to