But When I am trying to just load the sap.viz library, I am not getting that error. See below html file, that has got no error in console...
<!DOCTYPEHTML>
<html>
<head>
<metahttp-equiv="X-UA-Compatible"content="no-cache"charset="UTF-8">
<scriptsrc="resources/sap-ui-core.js"type="text/javascript"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m,sap.ui.unified,sap.viz,sap.ui.table,sap.ui.ux3,sap.ca.ui"
data-sap-ui-theme="sap_bluecrystal">
</script>
<script>
var vOnHireChart = new sap.viz.ui5.Column("idOnhireClmnChartCDB",{height:"290px",width:"100%"});
vOnHireChart.placeAt("loginForm");
</script>
</head>
<bodyclass="sapUiBody" role="application">
<divclass="panel">
<divid="loginForm"></div>
</div>
</body>
</html>
But when I use it in my actual UI5 application, it throws error.