Block-scoped variable ‘wizard’ used before its declaration.ts(2448)

here is the code let args = { "wz_nav_style": "dots", // dots, tabs, progress "buttons": … Read more Block-scoped variable ‘wizard’ used before its declaration.ts(2448)

here is the code

let args = {
"wz_nav_style": "dots", // dots, tabs, progress
"buttons": true,
"navigation": ‘all’ // buttons, nav, all
};

const wizard = new wizard(args);

wizard.init();

document.addEventListener("submitWizard", function (e) {
  alert("Form Submit");
});

and i get error – Block-scoped variable ‘wizard’ used before its declaration.ts(2448)

How to solve this..?

Source: CSS – Stack Overflow



Leave a Reply

Your email address will not be published. Required fields are marked *