Error in build/2.js

I try to download a file :

myArray:Array=[];

downLoadFile(my_model:MyModel){
transfer
.download(uri, templatePath, true)
.then(
entry => {
this.myArray.push(my_model);
console.log(myArray);//it doesn’t come here
})

}

Downloading successfully when building on ios but I have this error :

{“line”:2200,“column”:31,“sourceURL”:“http://localhost:8080/build/2.js”}