You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/05/22 22:42:18 UTC

[GitHub] jgranick opened a new issue #245: Uncaught ReferenceError: org is not defined

jgranick opened a new issue #245: Uncaught ReferenceError: org is not defined
URL: https://github.com/apache/royale-asjs/issues/245
 
 
   Building a large codebase, multiple classes rely upon the `org.apache.royale.utils.Language.Vector` module.
   
   It appears that at first, all files are compiled to JavaScript, but then a second (optimization? circular dependency?) pass runs on the generated output, and trims the `goog.require` statements and moves some of them to different files. Unfortunately, the `org.apache.royale.utils.Language` dependency is showing up much later than other dependencies, which affects code which relies upon it in statics, const values and other things that might execute immediately.
   
   Perhaps the optimization step should make an exception and not remove the Language module, as I assume that module does not require any further dependencies, so it will not affect circular references?
   
   Thank you :smile:
   
   I'm trying to compile Starling using Apache Royale, and I've gotten past the compile errors to runtime

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services