Can you please test with our sample app and confirm if this is working? Because if the sample app is not working as well then most likely there has been an error in the installation proccess of Cordova.
Thanks
J
Joao Pinho
said
about 7 years ago
Hi everyone!
I'm trying devolope a augmented reality app that just like the first example "image on target".
When i execute this, i have this error: Uncaught TypeError: Cannot read property 'require' of undefined
on this line:
var wikitudePlugin = cordova.require("com.wikitude.phonegap.WikitudePlugin.WikitudePlugin");
and then if i press the first option to try the first example, i havethis error: Uncaught TypeError: Cannot read property 'file' of undefined
at this line:
if ( example.path.length > cordova.file.applicationDirectory ) {
if ( example.path.substring(0, cordova.file.applicationDirectory) != cordova.file.applicationDirectory ) {
Joao Pinho