Cord window error: "cordova / windows8 / commandProxy" not found

I created a Windows application based on Cordoba. As soon as I add a plugin, the application will crash with the exception cordova/windows8/commandProxy not found .

Cordoba Version: 4.3.0

+5
source share
1 answer

cordova/windows8/commandProxy deprecated in Cordoba 4.3.0.

I replaced this statement in the plugins file

 require("cordova/windows8/commandProxy") 

to

 require("cordova/exec/proxy") 

and it seems to work.

For example, I changed line number 18 in PushPluginProxy.js from

 require("cordova/windows8/commandProxy").add("PushPlugin", module.exports); 

to

 require("cordova/exec/proxy").add("PushPlugin", module.exports); 

The name in the string changes depending on the plugin.

Alternatively, you can fix the plugin, as in this transfer request from the AppVersion ie plugin :

Edit

 require("cordova/windows8/commandProxy").add("AppVersion", AppVersionProxy); 

to

 cordova.commandProxy.add("AppVersion", AppVersionProxy); 
+12
source

All Articles