When I open the site page to which I added an application written using Wix App Builder, i see unknown error. When I delete my application, this error vanishes. I delete all my code, and build application, update him on site, and see again this error.
WixConsole:
Developer Console:
P.s. updating application continuous too long.
// import wixData from 'wix-data';
// const dataBaseName = 'clientBase';
// let client = {
// name: null,
// phoneNumber: null,
// email: null,
// typeOfActivity: null,
// aboutMyActivivty: null,
// sitesTarget: null,
// advertising: null
// }
// let secondSlidePass, thirdSlidePass, fourthSlidePass, fifthSlidePass = false;
// export function nextButtonOne_click(event) {
// let radioButtons = $w('#typeOfActivity');
// if (radioButtons.selectedIndex === 4) {
// client.typeOfActivity = $w('#input1').value;
// } else {
// client.typeOfActivity = radioButtons.options[radioButtons.selectedIndex].label;
// }
// $w('#slideshow1').next()
// secondSlidePass = true;
// }
// export function typeOfActivity_change(event) {
// let radioButtons = $w('#typeOfActivity');
// if (radioButtons.selectedIndex === 4) {
// $w('#input1').show();
// }else{
// $w('#input1').hide();
// }
// }
// export function nextButtonTwo_click(event) {
// let aboutInput = $w('#aboutMe');
// client.aboutMyActivivty = aboutInput.value;
// $w('#slideshow1').next();
// thirdSlidePass = true;
// }
// export function nextButtonThree_click(event) {
// let checkBox = $w('#checkboxGroup1');
// client.sitesTarget = '';
// if (checkBox.selectedIndices.length > 0) {
// for (var i = 0; i < checkBox.selectedIndices.length; i++) {
// client.sitesTarget = client.sitesTarget + checkBox.options[checkBox.selectedIndices[i]].label + "; ";
// }
// }
// $w('#slideshow1').next();
// fourthSlidePass = true;
// }
// export function nextButtonFour_click(event) {
// let checkBox = $w('#checkboxGroup2');
// client.advertising = '';
// if (checkBox.selectedIndices.length > 0) {
// for (var i = 0; i < checkBox.selectedIndices.length; i++) {
// client.advertising = client.advertising + checkBox.options[checkBox.selectedIndices[i]].label + "; ";
// }
// }
// $w('#slideshow1').next();
// fifthSlidePass = true
// }
// let firstName, secondName, phone, email, agree = null
// export function validUserData (event) {
// firstName = $w('#inputFirstName');
// secondName = $w('#inputSecondName');
// phone = $w('#inputNumber');
// email = $w('#inputMail');
// agree = $w('#checkboxAgree');
// if ((firstName && secondName && phone.valid && email.valid) && (agree.selectedIndices[0] === 0)) {
// $w('#button8').enable();
// } else {
// console.log(phone.valid, email.valid, agree.selectedIndices)
// }
// }
// export function submit_click(event) {
// client.name = firstName.value + ' ' + secondName.value;
// client.phoneNumber = phone.value;
// client.email = email.value;
// console.log(client);
// //=========!Add client in DataBase!===============
// wixData.insert(dataBaseName, client);
// //=========!Add client in DataBase!===============
// }
// export function prewButtonClick(event) {
// $w('#slideshow1').previous();
// }
// export function toFirstSlide (event) {
// $w('#slideshow1').changeSlide($w('#slideshowSlide1'));
// }
// export function toSecondSlide (event) {
// if(secondSlidePass){
// $w('#slideshow1').changeSlide($w('#slideshowSlide2'));
// }
// }
// export function toThirdSlide (event) {
// if(thirdSlidePass){
// $w('#slideshow1').changeSlide($w('#slideshowSlide3'));
// }
// }
// export function toFourthSlide (event) {
// if(fourthSlidePass){
// $w('#slideshow1').changeSlide($w('#slideshowSlide4'));
// }
// }
// export function toFifthSlide (event) {
// if(fifthSlidePass){
// $w('#slideshow1').changeSlide($w('#slideshowSlide5'));
// }
// }