I got an error when initiating sap ui program, please help
manifest.json
"sap.ui5": {
"rootView": {
"viewName": "latihan1.view.App",
"type": "XML"
},
"dependencies": {
"minUI5Version": "1.30.0",
"libs": {
"sap.ui.core": {},
"sap.m": {},
"sap.f": {},
"sap.ui.layout": {}
}
},
"config": {
"fullWidth": true
},
"contentDensities": {
"compact": true,
"cozy": true
},
and index.html
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title>latihan1</title>
<script id="sap-ui-bootstrap"
src="../../resources/sap-ui-core.js"
data-sap-ui-libs="sap.ui.core, sap.m, sap.f, sap.ui.layout"
data-sap-ui-theme="sap_belize"
data-sap-ui-compatVersion="edge"
data-sap-ui-resourceroots='{"latihan1": ""}'>
</script>
and component.js
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"latihan1/model/models",
"sap/f/library"
], function(UIComponent, Device, models, library) {
"use strict";
return UIComponent.extend("latihan1.Component", {
metadata: {
manifest: "json"
},
/**
* The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
* @public
* @override
*/
init: function() {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
// enable routing
this.getRouter().initialize();
// set the device model
this.setModel(models.createDeviceModel(), "device");
}
});
The library already loaded