Can not run a project

Thread is closed for posting
2 posts, 0 answers
  1. Христо
    Христо avatar
    13 posts
    Member since:
    Oct 2013

    Posted 15 Jun 2014 Link to this post

    Hello :)

    I have a problem with the Appbuilder after the lastest update. When I run a project ( tested and with the default ) the simulator shows a white screen. I checked the console and it return me a error:

    Uncaught module cordova/base64 not found cordova.js:253
    deviceready has not fired after 5 seconds. cordova.js:6458
    Channel not fired: onCordovaConnectionReady cordova.js:
    6451Channel not fired: onCordovaInfoReady cordova.js:6451

    I have the problem with the sample ( deafult project ). Tried and with the different cordova versions - the same problem :)
    I hope you will help me with the problem :)

    Best Regards :)
  2. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 17 Jun 2014 Link to this post

    Hi Христо :),

    Thank you for reporting this.

    Unfortunately, with the latest AppBuilder release we introduce a regression within our simulator which leads to the very same exception. This should happen only if your project targets Cordova 2.7 or prior. Our team is currently working on the permanent fix for the faulty behavior. We aim to include it in the next AppBuilder version, planned to be released by the end of this month (June).

    However, until then you can add the following code right after the cordova.js reference. You should find it inside your Index.html file:
    <script src="cordova.js"></script>
            if (window.navigator.simulator)
                    cordova.define("cordova/base64", function(require, exports, module) {
                            exports.fromArrayBuffer = function(argument) { return argument; };           

    This should fix the issue inside the AppBuilder simulator. Please, note to remove the above when you change the Cordova version to newer than 2.7, inside your project! Also, you should be free to remove the workaround after the upcoming release happens.

    Further, I believe the project should work as expected when built and deployed on real devices (not with the AppBuilder Companion App). So, you can also continue testing on such.

    I hope this helps.


    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

Back to Top