diff --git a/packages/icon/src/utils.ts b/packages/icon/src/utils.ts index 3c3e50de7..5255352e6 100644 --- a/packages/icon/src/utils.ts +++ b/packages/icon/src/utils.ts @@ -7,7 +7,9 @@ export const config = (iconConfig: IconConfig): void => { export const getIcon = (key: keyof IconConfig): IconDefinition => { const { icons } = componentConfig; if (!icons) - throw new Error('@tablecheck/tablekit-Icon: error configuring icons'); + throw new Error( + "'@tablecheck/tablekit-Icon: no configured icons, try adding one of the following as high in the component tree as possible `import '@tablecheck/tablekit-pro-icon-config';` or `import '@tablecheck/tablekit-free-icon-config';`'" + ); const icon = icons[key]; if (!icon) throw new Error(