Skip to content

Commit

Permalink
fix(webcomponents-icons): fix warning to show correct path (#1140)
Browse files Browse the repository at this point in the history
The warning was pointing to `@ui5/webcomponents` instead of `@ui5/webcomponents-icons`
  • Loading branch information
MarcusNotheis authored and ilhan007 committed Jan 16, 2020
1 parent 9fbdb11 commit 59c1e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 59c1e02

Please sign in to comment.