Giter VIP home page Giter VIP logo

Comments (16)

claudio-destro avatar claudio-destro commented on September 27, 2024 7

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.

robmadole avatar robmadole commented on September 27, 2024 7

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.

robmadole avatar robmadole commented on September 27, 2024 6

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.

nathandaly avatar nathandaly commented on September 27, 2024 5

Screenshot 2024-05-10 at 14 25 31

3 months after reporting and it's still an issue in Vite + TS + React + Kits.

from font-awesome.

robmadole avatar robmadole commented on September 27, 2024 5

@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.

NinjaJake86 avatar NinjaJake86 commented on September 27, 2024 4

Same issue here, any ETA on a fix? Cheers

from font-awesome.

nathandaly avatar nathandaly commented on September 27, 2024 3

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.

robmadole avatar robmadole commented on September 27, 2024 3

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.

claudio-destro avatar claudio-destro commented on September 27, 2024 2

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.

lctech-LeoLioa avatar lctech-LeoLioa commented on September 27, 2024 2

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.

stream-jdibling avatar stream-jdibling commented on September 27, 2024 2

my dudes, lets go please. no way it's THAT hard

from font-awesome.

robmadole avatar robmadole commented on September 27, 2024 2

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.

claudio-destro avatar claudio-destro commented on September 27, 2024 1

not to mention that kits are not free...

from font-awesome.

claudio-destro avatar claudio-destro commented on September 27, 2024

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.

joey-carlisle4 avatar joey-carlisle4 commented on September 27, 2024

Can we get an ETA on this fix?

from font-awesome.

tatwater avatar tatwater commented on September 27, 2024

Checking back in on this!

from font-awesome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.