Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Load extrnal js file via component.js and include tag

Hi,

i have problem with loaded external js file, my example:

sap.ui.core.UIComponent.extend("Component", {

  metadata: {

     name: "MyCOmponent",

     version: "1.1",

      library: "my.component",

     includes: [

               'css/myStyle.css',

               'https://raw.githack.com/zloirock/core-js/v2.2.2/client/shim.min.js'

        ],

     }

}

and this example work correct in ff and chrome but in ie11 is error with load js file.

Error: File: UIComponent.js, Line: 6, Column: 283

if i load js file by script tag or jQuery.sap.includeScript() method everything is allright in all browsers.

Regards, Bart

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question