You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by gi...@git.apache.org on 2017/10/14 02:27:21 UTC

[GitHub] justinmclean opened a new issue #32: When Application is missing initial view confusing variable null0 is undeclared warning occurs

justinmclean opened a new issue #32: When Application is missing initial view confusing variable null0 is undeclared warning occurs
URL: https://github.com/apache/royale-asjs/issues/32
 
 
   If the initial view is missing from the application a warning is produced when compiling:
   App.js:93: WARNING - variable null0 is undeclared
   null0,
   ^^^^^
   
   and the build is marked as successful.
   
   Sample code to reproduce:
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:js="library://ns.apache.org/flexjs/basic">
   
       <js:valuesImpl>
           <js:SimpleCSSValuesImpl/>
       </js:valuesImpl>
   
       <js:DateChooser />
   </js:Application>
   ```
   
   When run the program produces an RTE "Uncaught ReferenceError: null0 is not defined" at the same line number.
   
   This is an user error obviously but would be nice if an error was raised not a warning or better still a warning/error stating you are missing the initialview.
 
----------------------------------------------------------------
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