Skip to content

Commit 59c1e02

Browse files
MarcusNotheisilhan007
authored andcommittedJan 16, 2020
fix(webcomponents-icons): fix warning to show correct path (#1140)
The warning was pointing to `@ui5/webcomponents` instead of `@ui5/webcomponents-icons`
1 parent 9fbdb11 commit 59c1e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/main/src/Icon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class Icon extends UI5Element {
160160
iconData = await getIconData(name);
161161
} catch (e) {
162162
/* eslint-disable-next-line */
163-
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".`);
163+
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".`);
164164
}
165165
}
166166
this.pathData = iconData.pathData;

0 commit comments

Comments
 (0)