cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Application not working in IE, works fine in chrome.

former_member670493
Discoverer
0 Kudos
474

As per the project requirement,application needs to also run in IE.

please check out the error attached .Thanks in advance.

error.jpg

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member88235
Participant

A typical reason why an application is not working in IE is because one uses too new Javascript features. Often the IE even doesn't tell you anything about it. Sometimes you'll find a hint like syntax error in the console, sometimes you'll find nothing.

So you have different options here:

  1. Transpile your code during the build process. The Usage of the ui5 tooling and a custom transpile task like ui5-task-transpile can help here.
  2. You strictly avoid any modern Javascript features. A good source is the MDN.

Best regards,
Christian

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

About the error:

> Routes with dynamic parts cannot be resolved as home route.

It comes from the sap/ui/core/routing/Router module when dynamic parts ({...}) are detected in the "pattern" of the route that is assigned to the "homeRoute". I.e. you must have something like this in the router settings:

"sap.ui5": {
  ...,
  "routing": {
    "config": {
      ...,
      "homeRoute": "myHome"
    },
    "routes": {
      "myHome": {
        "pattern": "mypath/{something}/mysubpath",
        "target": "home"
      }
    },
    ...
  }
}

Solution: As the router doesn't allow any home routes with dynamic patterns, try with one the following options depending on the project...

  • Pick a route that has pattern: "" and assign its name to the "homeRoute".
  • Keep "homeRoute" as it is, but set an empty string ("") to the pattern of the home route.
  • Remove "homeRoute" from the "config" if it's not relevant to the app.