Comments (8)
for the sake of my mind (or someone else's mind 😀), just apply a patch to your KIT after npm install
:
--- node_modules/@awesome.me/kit-XXX/icons/modules/icon-types.ts.orig 2024-05-01 08:07:09
+++ node_modules/@awesome.me/kit-XXX/icons/modules/icon-types.ts 2024-05-01 08:07:17
@@ -1,5 +1,5 @@
import type { IconDefinition, IconPack } from '@fortawesome/fontawesome-common-types';
-import type { Icon, IconParams } from '@fortawesome/fontawesome-svg-core'
+// import type { Icon, IconParams } from '@fortawesome/fontawesome-svg-core'
export type IconPrefix = 'fast'|'fass'|'fasr'|'fasl'|'fakd'|'fak'|'fad'|'fat'|'fas'|'far'|'fal'|'fab';
I know this is really ugly and a workaround, but at least it lets me build my final application
from font-awesome.
Same issue here, any ETA on a fix? Cheers
from font-awesome.
I fell into this issues recently: it is a real blocker. Hope this will be fixed soon
I am using classic command "tsc && vite build"
from font-awesome.
3 months after reporting and it's still an issue in Vite + TS + React + Kits.
from font-awesome.
not to mention that kits are not free...
from font-awesome.
Quick update. We're still working on this. We want to make sure it's actually fixed before we release and TypeScript can be tricky.
from font-awesome.
for the sake of my mind (or someone else's mind 😀), just apply a patch to your KIT after
npm install
:--- node_modules/@awesome.me/kit-XXX/icons/modules/icon-types.ts.orig 2024-05-01 08:07:09 +++ node_modules/@awesome.me/kit-XXX/icons/modules/icon-types.ts 2024-05-01 08:07:17 @@ -1,5 +1,5 @@ import type { IconDefinition, IconPack } from '@fortawesome/fontawesome-common-types'; -import type { Icon, IconParams } from '@fortawesome/fontawesome-svg-core' +// import type { Icon, IconParams } from '@fortawesome/fontawesome-svg-core' export type IconPrefix = 'fast'|'fass'|'fasr'|'fasl'|'fakd'|'fak'|'fad'|'fat'|'fas'|'far'|'fal'|'fab';I know this is really ugly and a workaround, but at least it lets me build my final application
You can fix this error by changing/adding this line to your tsconfig
file:
"noUnusedLocals": false,
from font-awesome.
You can fix this error by changing/adding this line to your
tsconfig
file:"noUnusedLocals": false,
@nathandaly yep that was an option.
However, I don't want to loosen the constraints and allow unused imports or unused variables.
from font-awesome.
Related Issues (20)
- Bug: Individual icons are not available as es module .mjs files HOT 5
- Bug:
- Bug: Duplicated definitions for "IconName" in fontawesom-common-types HOT 3
- Bug: Safari / ios custom icons not rendering in js include - version 6 HOT 1
- Icon Request: fa-xtwitter HOT 1
- Bug: `title` element lost when changing icon HOT 1
- react individual import bug HOT 2
- Icon Request: fa- HOT 1
- Icon request: icon-name: abacus icon HOT 1
- Icon request: cube-outline
- Feature request: option to change CSS class root from ".fa" to something else
- Icon request: fa-pot or fa-vase
- Icon request: icon-bouquet
- Wrong @types in Fontawesome 6.4 pro for parse.icon
- Icon Request: Programming Languages Icon HOT 1
- Bug: "faXTwitter" is not included in js-packages HOT 3
- Icon request: cursor-drag
- [bug] Desktop font: file-pdf becomes file-png HOT 3
- Icon request: Flower of Life HOT 1
- Feature request: onload event listener for specific icons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from font-awesome.