ui5-webcomponents
ui5-webcomponents copied to clipboard
Timeline throws an error
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:
- Add ui5-timeline to your application
- Add ui5-timeline-item
- Check your console
Expected behavior No error is thrown.
Affected components (if known) ui5-timeline-item(ui5-timeline)