Uncaught module cordova/base64 not found

Thread is closed for posting
2 posts, 0 answers
  1. Monty
    Monty avatar
    2 posts
    Member since:
    May 2013

    Posted 17 Jun 2014 Link to this post

    We are using the app using cordova ver 2.7.  Since last week, we are not able to test this on the Simulator nor able to build the app.

    This is critical as we have not modified any thing on cordova.js but looks like some kind of update is leading to this error. We would like this issue to be resolved as soon as possible. This is affecting our other apps too.

    Following are the error we get on the Simulator.

    Uncaught module cordova/base64 not found
    SQLite Error: could not prepare statement 
    deviceready has not fired after 5 seconds.
    Channel not fired: onCordovaConnectionReady
    Channel not fired: onCordovaInfoReady 

  2. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 19 Jun 2014 Link to this post

    Hello Monty,

    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:
    Copy Code
    <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), as we were not able to reproduce the build failures on our side. So, could you please share a bit more information about the errors that are being thrown on your side upon build?

    I hope the above solution works for you and apologize for any inconveniences caused by this.


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

Back to Top