cancel
Showing results for 
Search instead for 
Did you mean: 

failed to preload 'sap.m.routing.library-preload':

kedarT
Active Contributor
0 Kudos

Hi,

I am working on developing a Fiori like application using SplitApp. Wanted to have the navigation using the sap.m.Routing.

I get the below error:

I have the following in the Index.html

<script src="resources/sap-ui-core.js"

id="sap-ui-bootstrap"              

                data-sap-ui-libs="sap.m,sap.m.routing"

  data-sap-ui-theme="sap_bluecrystal">

</script>

Appreciate your help....!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you're referring to a wrong library. The routing is available in sap.ui.core.routing SAPUI5 SDK - Demo Kit

kedarT
Active Contributor
0 Kudos

I have added the library - sap.ui.core.routing and get the below error:

Uncaught Error: failed to load 'sap/ui/core/routing/library.js' from resources/sap/ui/core/routing/library.js: 404 - NOT FOUND

Former Member
0 Kudos

It's not required to add the routing. its loaded by default. It comes under sap.ui.core.  you can start using it.

kedarT
Active Contributor
0 Kudos

Now i have different error message:

failed to load 'sap/m/routing/Routemacthedhandler.js' from resources/sap/m/routing/Routemacthedhandler.js: 404 - NOT FOUND


Former Member
0 Kudos

Why are you repeatedly referring the sap.m library for routing. For a moment take a look at the api reference  https://sapui5.hana.ondemand.com/sdk/#docs/api/symbols/sap.ui.core.routing.html

Replace all your sap.m.routing by sap.ui.core.routing .

Answers (0)