ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Timeline throws an error

Open fifoosid opened this issue 7 years ago • 0 comments

Describe the bug When a ui5-timeline-item is added to ui5-timeline, we can see the following error in the console:

DateFormat.js:147 Uncaught (in promise) TypeError: sap.ui.getWCCore is not a function at Function.push../node_modules/@ui5/webcomponents-core/dist/sap/ui/core/format/DateFormat.js.DateFormat.createInstance (DateFormat.js:147) at Function.push../node_modules/@ui5/webcomponents-core/dist/sap/ui/core/format/DateFormat.js.DateFormat.getDateTimeInstance (DateFormat.js:125) at calculate (TimelineItemTemplateContext.js:15)

To reproduce Steps to reproduce the behavior:

  1. Add ui5-timeline to your application
  2. Add ui5-timeline-item
  3. Check your console

Expected behavior No error is thrown.

Affected components (if known) ui5-timeline-item(ui5-timeline)

fifoosid avatar Apr 03 '19 13:04 fifoosid