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
Hello, there is an open ticket for this in the react-fontawesome repo, but moving here as there has not been a lot of traction in that repo, and this one is a lot more active.
My team is migrating to use font-awesome kits, and have installed it according to the docs in our react/typescript/vite project. When we build, which includes running tsc, we run into the following error. Other people are reporting running into this issue too:
tsc flags an error that all imports in the import declaration on line 2 are unused in this file:
Can you please remove you unused imports from icon-types.ts and release a fix for this?
About a month ago this @robmadole said the FA team would try and get this fixed up in the latest release. This doesnt seem to have made it in last week. Any updates on timelines are appreciated.
Reproducible test case
Not needed, you can try this yourself and run tsc with linting rules with a font awesome kit installed and you will see you get this error.
If you are not using imports (unused) please remove them. If companies not have proper linting/tsc setup maybe precommit linting or proper config setup it make break build scripts etc.
Expected behavior
We should be able to run tsc without haven broken/unused imports in the generated font awesome kit.
Reproducible test case
No response
Screenshots
No response
Font Awesome version
latest
Serving
Kit
Implementation
Other (as specified in the bug description)
Browser and Operating System
Its a build issue
Web bug report checklist
I have included a test case because my odds go way up that the team can fix this when I do
Bug description
Hello, there is an open ticket for this in the
react-fontawesome
repo, but moving here as there has not been a lot of traction in that repo, and this one is a lot more active.My team is migrating to use font-awesome kits, and have installed it according to the docs in our react/typescript/vite project. When we build, which includes running
tsc
, we run into the following error. Other people are reporting running into this issue too:tsc
flags an error that all imports in the import declaration on line 2 are unused in this file:node_modules/@awesome.me/kit_example/icons/modules/icon-types.ts
Can you please remove you unused imports from icon-types.ts and release a fix for this?
About a month ago this @robmadole said the FA team would try and get this fixed up in the latest release. This doesnt seem to have made it in last week. Any updates on timelines are appreciated.
Reproducible test case
Not needed, you can try this yourself and run tsc with linting rules with a font awesome kit installed and you will see you get this error.
If you are not using imports (unused) please remove them. If companies not have proper linting/tsc setup maybe precommit linting or proper config setup it make break build scripts etc.
Expected behavior
We should be able to run tsc without haven broken/unused imports in the generated font awesome kit.
Reproducible test case
No response
Screenshots
No response
Font Awesome version
latest
Serving
Kit
Implementation
Other (as specified in the bug description)
Browser and Operating System
Its a build issue
Web bug report checklist
The text was updated successfully, but these errors were encountered: