openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Only with IE 11: Failed to load component for container

Open born2dev opened this issue 7 years ago • 1 comments

Dear UI5-Team,

only with IE 11 (11.706.17134.0, Windows 10) my OpenUI5 (1.60.10) application can't be loaded because it gives the following error on loading the first component:

Failed to load component for container cmpntHome. Reason: SyntaxError: Syntaxfehler -

However the console doesn't display any syntax error.

The application can successfully be loaded with other browsers. I tested with Edge, Firefox and Chrome on Windows 10, Safari on macOS, Chrome on Android.

The add-on XML DOM Document is installed on IE 11, the add-on XML DOM Document 3.0 is not and I couldn't find out how to do it.

An excerpt from the index.html:

<script>
sap.ui.getCore().attachInit(
    function() {
      sap.ui.require([ "sap/m/Shell", "sap/ui/core/ComponentContainer" ], function(Shell,
        ComponentContainer) {

        var oComponentContainer = new ComponentContainer({
          name : "my.namespace",
          id : "cmpntHome",
          manifest: true,          
          height : "100%",
          componentCreated: function(oParams) {
  					var oComponent = oParams.getParameter("component");
            oComponentContainer.setComponent(oComponent);
            oComponentContainer.setBusy(false);
  				}          
        }).setBusyIndicatorDelay(0).setBusy(true);

        new Shell({
          id : "mySapMShell",
          app : oComponentContainer,
          appWidthLimited : true
        }).placeAt("content");
      });
    });
</script>

born2dev avatar Apr 14 '19 06:04 born2dev

The application has some arrow functions and I didn't know that IE 11 doesn't support this. Unfortunately the IE 11 console doesn't give any information of where the issue is located (filename + line number).

born2dev avatar Apr 23 '19 15:04 born2dev