floatinghotpot / cordova-plugin-facebookads

Cordova/PhoneGap plugin for Facebook Audience Network Ads
65 stars 70 forks source link

Intel XDK: "Uncaught Error: Module cordova-plugin-facebookads.FacebookAds does not exist." #63

Open PeterVerm opened 7 years ago

PeterVerm commented 7 years ago

Hi,

I have used the example code of this plugin and everything is working fine as long as I'm using cordova CLI for building: I can build it and run it on my phone. I'm currently developing my app in Intel XDK so I integrated the plugin into my app. Unfortunetely I'm always getting the error that "FacebookAds does not exist". So I imported the example into IntelXDK into a new project but again received the same errors:

remote console.loglink
"Channel not fired: onCordovaSimulateReady"
remote console.loglink
"Channel not fired: onPluginsReady"
remote console.loglink
"deviceready has not fired after 5 seconds."
remote console.loglink
"Channel not fired: onCordovaReady"
http://localhost:50820/cordova.js:1431link
Uncaught Error: Module cordova-plugin-facebookads.FacebookAds does not exist.

In the Plugin management of Intel XDK the following plugins are included among others: cordova-facebook-audnet-sdk cordova-plugin-facebookads

What's wrong here?

Thanks.

Peter

halkoy commented 7 years ago

I had got the same problem. Intel XDK does not support Cordova 6.4.0 but this plugin needs 6.4.0. I think the problem is this.

PeterVerm commented 7 years ago

Hi Helkoy,

You are right! That seems to be the reason. Thanks for the hint.