Coder Social home page Coder Social logo

Comments (8)

claudio-destro avatar claudio-destro commented on June 10, 2024 6

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.

NinjaJake86 avatar NinjaJake86 commented on June 10, 2024 3

Same issue here, any ETA on a fix? Cheers

from font-awesome.

claudio-destro avatar claudio-destro commented on June 10, 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.

nathandaly avatar nathandaly commented on June 10, 2024 2

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.

claudio-destro avatar claudio-destro commented on June 10, 2024 1

not to mention that kits are not free...

from font-awesome.

robmadole avatar robmadole commented on June 10, 2024 1

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.

nathandaly avatar nathandaly commented on June 10, 2024

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.

claudio-destro avatar claudio-destro commented on June 10, 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.

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.