6

SAPUI5 Routing not working

 7 months ago
source link: https://community.sap.com/t5/technology-q-a/sapui5-routing-not-working/qaq-p/13592963
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

SAPUI5 Routing not working

Hello experts,

I am trying to add routing to a UI5 (OpenUI5 - v1.120.3) application. I have followed the Walkthrough tutorial on UI5 Demo kit site. On step number 30, I have added routing config in manifest.json, initialized router in Component.js, and made sure that all views are in their proper expected place.

I am using the UI5 CLI (v3.2.0) to develop the application. Before the routing step everything was working as expected. When I run the app with routing (as per step 30) the page goes blank and I see these warnings in browser console,

SageDev_0-1706881233326.png

No matter what I do, nothing works. I downloaded and started the step 30 code and to my surprise that code also gives me these warnings but the page comes up and routing works.

SageDev_1-1706882030469.png

The only difference in both the code bases is that I am instantiating ComponentContainer from index.js file instead of doing it from index.html file. But I don't think it should matter since everything else works.

Can someone please guide as to what I may be missing here.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK