Comments (16)
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.
We've got our fix done finally and merged in. We're testing it through all the use cases (including some here) that everyone has found to make sure we've got them fixed.
So. We're testing. Feeling pretty good at the moment.
from font-awesome.
Alright everyone! We've got this released and it's available for testing.
You'll need to go into your Kit and make some kind of change that kicks off a package build and publishing. You can add and then remove an icon, or add then remove a style. Both of those should do it.
Let me know what you find, if it fixes things for you, or if there are more questions.
Sorry this one took so long. We learned a LOT about .tsconfig
files during this.
from font-awesome.
3 months after reporting and it's still an issue in Vite + TS + React + Kits.
from font-awesome.
@lctech-LeoLioa No update yet. We've ran into a tricky little issue that's going to need more testing. It's still on our radar.
@stream-jdibling it's pretty tricky
from font-awesome.
Same issue here, any ETA on a fix? Cheers
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.
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.
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.
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.
any update about this issue ?
from font-awesome.
my dudes, lets go please. no way it's THAT hard
from font-awesome.
Another quick update. Testing looked great (all the issues we've collected look like they are now resolved.) We'll most likely be deploying this week.
from font-awesome.
not to mention that kits are not free...
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.
Can we get an ETA on this fix?
from font-awesome.
Checking back in on this!
from font-awesome.
Related Issues (20)
- Icon Request: Floorplan HOT 1
- Access denied (403) for font CSS files loaded via KitBug: HOT 5
- Icon Request: fa-nurses HOT 1
- Icon Request: update software, App
- Bug: Upgrading dependencies leads to fortawesome dependencies being "undefined" HOT 1
- Icon Request: drive-train
- Icon Request: shipping reports
- Bug: Getting 403 error for a certain custom Font-Awesome custom kit HOT 7
- Icon request: icon-tailwindcss HOT 1
- Feature request: import icons into kits
- Icon Request: fa-airbnb HOT 1
- Icon request: leetcode HOT 1
- Icon Request: pix HOT 2
- Icon request: Leetcode HOT 1
- katira000
- Icon request: 2FA
- Icon Request: Multi-Factor Authentication (desktop-mobile-lock)
- Brand request: icon-wellfound HOT 6
- Icon request: Leetcode icon HOT 1
- Icon Request: mobile vibrations on/off (haptics on/off) HOT 1
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.