You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not possible import specific icons from kit packages in typescript files. If I try to import some icon like this: import { faAzure } from "@awesome.me/kit-***/icons/kit/custom"
The compilation will fail with following error: error TS2304: Cannot find name 'IconDefinition'.
file node_modules/@awesome.me/kit-***/icons/modules/kit/custom.d.ts looks like this:
Bug description
It's not possible import specific icons from kit packages in typescript files. If I try to import some icon like this:
import { faAzure } from "@awesome.me/kit-***/icons/kit/custom"
The compilation will fail with following error:
error TS2304: Cannot find name 'IconDefinition'.
file
node_modules/@awesome.me/kit-***/icons/modules/kit/custom.d.ts
looks like this:it exports
IconDefinition
fromicon-types.ts
file, butIconDefinition
is not exported fromicon-types.ts
file:Reproducible test case
No response
Screenshots
No response
Font Awesome version
v6.3.0
Serving
Kit
Implementation
SVG+JS
Browser and Operating System
Web bug report checklist
The text was updated successfully, but these errors were encountered: