Encountering an error in IE11 while the code works fine in Chrome, Mozilla, and Safari. The issue arises when trying to remove a car from the garage.
The error message "Invalid Argument" pops up once I attempt to remove a car from the garage section within my project.
I suspect that the problem lies with the swiper slider implementation. When I eliminate the swiper component from the section, the removal process works smoothly. Refer to this screenshot for more clarity: http://prntscr.com/onfklt
Here is the Remove function code snippet:
remove(id) {
let vm = this;
vm.to = vm.to-1;
vm.total = vm.total-1;
var resultModel=vm.$global.inArrayModel(id,vm.carModel);
vm.model.garageDataArray=vm.$global.remove_grage(id,vm.model.garageDataArray,this);
vm.carModel.splice(resultModel,1);
},
Global variable function for removing cars from the garage:
inArrayModel(id, carModel) {
var length = carModel.length;
for (var i = 0; i < length; i++) {
if (carModel[i].model_id == id)
return i;
}
return false;
},
remove_grage(id, garageData, snotifyObj) {
var result = this.inArray(id, garageData);
if (result != 'false') {
garageData.splice(result, 1);
localStorage.setItem("garage", JSON.stringify(garageData));
this.onerror(snotifyObj.$snotify, snotifyObj.$store, 'Removed from Garage');
}
return garageData;
},
Experiencing issues with the following code snippet:
[Vue warn]: Error in nextTick: "Error: Invalid argument."
"Error: Invalid argument.
at setTextContent (eval code:5718:3)
at patchVnode (eval code:6317:7)
at updateChildren (eval code:6178:9)
at patchVnode (eval code:6304:29)
at updateChildren (eval code:6178:9)
at patchVnode (eval code:6304:29)
at updateChildren (eval code:6178:9)
at patchVnode (eval code:6304:29)
at updateChildren (eval code:6178:9)
at patchVnode (eval code:6304:29)"