This is a migrated thread and some comments may be shown as answers.

Uncaught module cordova/base64 not found

1 Answer 89 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 13 Jun 2014, 03:50 PM
We had released an app awhile ago using version 2.7 of cordova. We have not made changes to the application since our initial release, however, as of yesterday I had opened the project and attempted to run it. In the console log I receive the following messages:

Uncaught module cordova/base64 not found cordova.js:253
deviceready has not fired after 5 seconds. cordova.js:6875
Channel not fired: onCordovaConnectionReady cordova.js:6868
Channel not fired: onCordovaInfoReady cordova.js:68682
Uncaught module cordova/base64 not found cordova.js:2532
Uncaught module cordova/base64 not found

In other projects targeting 2.7, I receive the same messages as well, however those will error out during the build process for both iOS and Android. This needs to be resolved ASAP.

Paul

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 17 Jun 2014, 01:36 PM
Hello Paul,

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>
<script>
        if (window.navigator.simulator)
        {
                cordova.define("cordova/base64", function(require, exports, module) {
                        exports.fromArrayBuffer = function(argument) { return argument; };           
                });
        }
    </script>

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?

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

Regards,
Kaloyan
Telerik
 

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

 
Tags
Report a bug
Asked by
Paul
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or