From 59c1e02ec6bec18b10e20e8a8d53b49bd788e1c8 Mon Sep 17 00:00:00 2001 From: Marcus Notheis Date: Thu, 16 Jan 2020 09:53:57 +0100 Subject: [PATCH] fix(webcomponents-icons): fix warning to show correct path (#1140) The warning was pointing to `@ui5/webcomponents` instead of `@ui5/webcomponents-icons` --- packages/main/src/Icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/main/src/Icon.js b/packages/main/src/Icon.js index 2cb001c0c74a..24328185daea 100644 --- a/packages/main/src/Icon.js +++ b/packages/main/src/Icon.js @@ -160,7 +160,7 @@ class Icon extends UI5Element { iconData = await getIconData(name); } catch (e) { /* eslint-disable-next-line */ - return console.warn(`Required icon is not registered. You can either import the icon as a module in order to use it e.g. "@ui5/webcomponents/dist/icons/${name.replace("sap-icon://", "")}.js", or setup a JSON build step and import "@ui5/webcomponents-icons/dist/Assets.js".`); + return console.warn(`Required icon is not registered. You can either import the icon as a module in order to use it e.g. "@ui5/webcomponents-icons/dist/icons/${name.replace("sap-icon://", "")}.js", or setup a JSON build step and import "@ui5/webcomponents-icons/dist/Assets.js".`); } } this.pathData = iconData.pathData;