Errors When Starting Device Simulator

2 posts, 1 answers
  1. Troy
    Troy avatar
    12 posts
    Member since:
    Jan 2011

    Posted 06 Jan 2014 Link to this post

    Hi everyone.

    I'm creating a new mobile project using Icenium. When I start the device simulator, I get the following errors:

    Uncaught ReferenceError: cordova is not defined    about:blank:1
    Uncaught TypeError: Cannot read property '0' of undefined

    Why do I get these errors?

    Here is the markup from my header.

    <!DOCTYPE html>


    <!--Style sheets.-->
    <link href="styles/kendo/" rel="stylesheet" />
    <link href="styles/app.css" rel="stylesheet" />

    <script src="cordova.js"></script>
    <script src="scripts/kendo/jquery.min.js"></script>
    <script src="scripts/kendo/"></script>
    <script src="scripts/app.js"></script>
  2. Answer
    Steve avatar
    10940 posts

    Posted 07 Jan 2014 Link to this post

    Hi Troy,

    As per your support ticket, here are our findings on your questions:
    • We're not able to reproduce the "cordova is not defined" error. Open the Debugger in the simulator, go to console and identify on which line does this error occur.
    • The "Cannot read property '0' of undefined" error you get is due to you trying to load the Flat skin while the Application is still initializing. To fix this, pass the skin as Application configuration option on init, like this (additionally the skin name is case-sensitive):

      app.application = new, { skin: "flat" });

    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top