parliament
parliament

Reputation: 22904

cordova-plugin-file: deviceready event not fired after 5 seconds

When I install cordova-plugin-file I get this error. The error seems to trace all the way back to version 1.3 back in 2014...

deviceready event not fired after 5 seconds

How is it still happening in version 2.1.0 and Cordova 5? I downgraded version by version and it only stopped showing the error in 1.1, but then I get a different error from cordova.js (understandably since it's so far ahead of that build).

module cordova-plugin-file.ProgressEvent not found

I can't even find the issue tracker for the plugin. What's a developer to do?

Upvotes: 1

Views: 575

Answers (1)

Sjoerd Pottuit
Sjoerd Pottuit

Reputation: 2327

I had the same problem:

Uncaught module cordova-plugin-file.ProgressEvent not found

The plugins weren't added to the app's plugins folder and config.xml for some mysterious reason. I had installed the cordova-plugin-file-transfer plugin before I got the error above.

My solution:

Delete the platform (Android for example) folder in the platforms folder. After adding the platform again the error was gone.

Upvotes: 1

Related Questions