Start a new topic
Solved

error AR.TargetCollectionResource is not a constructor

when i try running this example https://github.com/Wikitude/wikitude-sdk-samples/tree/master/01_ImageRecognition_1_ImageOnTarget

using firebase as a host, this block of code errors out  

    

try{
        this.targetCollectionResource = new AR.TargetCollectionResource("assets/magazine.wtc", {
			onLoaded:function(){
				AR.logger.info("LOADED");
			},
			onError:function(err){
				AR.logger.error(`Error on target collection: ${err}`);
			}
        });
}catch(err){
			AR.logger.error(`error: ${err.message}`)
		}

    the error says "AR.TargetCollectionResource is not a constructor"  here is an image of the errorerror image

1 Comment

sorry the link to the sdk sample i was using is link to sdk

Login or Signup to post a comment