Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Component.js issue with UI5 version 1.26.3

$
0
0

Hi ,

I am using a simple component.js for my ui5 app .

It is running perfectly fine on the versions 1.28 and above .

But the same is throwing errors for version 1.26.3 .

As our netweaver UI5 version is 1.26 we have to use 1.26 version.

Please suggest.

 

Component JS Code

 

sap.ui.core.UIComponent.extend("portal.app.Component", {    metadata: {        rootView : {            viewName: ".portal.app.view.Container",            type: "JS"        },        routing: {              config: {                routerClass: "sap.m.routing.Router",                viewType: "JS",                viewPath: "portal.app.view",                controlId: "idContainer",                controlAggregation: "pages"              },              routes: [                {                  pattern: "",                  name: "home",                  viewName: "Home"                },                {                  pattern: "details",                  name: "details",                  viewName: "Details"                }              ],        },    },    init: function () {        sap.ui.core.UIComponent.prototype.init.apply(this, arguments);        this.getRouter().initialize();    }
});

Below is the error :

at line 34 (sap.ui.core.UIComponent.prototype.init.apply(this, arguments);)

 

Now if i am using

https://sapui5.hana.ondemand.com/1.26.3/resources/sap-ui-core.js

I am getting the error    but

 

if i am using

https://sapui5.hana.ondemand.com/1.28.9/resources/sap-ui-core.js

i am not getting any error.

 

 

Thanks


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>