๐Ÿ‘ฉ‍๐Ÿ’ป/Vue

[fontawesome] Argument of type 'IconPack' is not assignable to parameter of type 'IconDefinitionOrPack'

ํ•œ๋‚˜ 2021. 2. 10. 16:39

์ด์Šˆ

์ž‘์—…ํ•œ ํ”„๋กœ์ ํŠธ๋ฅผ github pages๋กœ deployํ•˜๋ ค๊ณ  npm install --save gh-pages์„ ์‹คํ–‰์‹œํ‚ค๊ณ  ๋‚˜์„œ npm audit์„ ํ•ด๋ณด๋‹ˆ, ๋ช‡ ๊ฐ€์ง€ ํŒจํ‚ค์ง€๋“ค์ด ์‚ฌ๋ผ์ ธ์„œ ๋‹ค์‹œ npm install์„ ํ•˜๊ณ  ๋‚˜์ž ์œ„ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

 

ํ•ด๊ฒฐ

 

github.com/FortAwesome/angular-fontawesome/issues/125

 

Argument of type 'IconPack' is not assignable to parameter of type 'IconDefinitionOrPack' · Issue #125 · FortAwesome/angular-f

Describe the problem Trying to import fab icons to angular project, but cli says there's the following error: error TS2345: Argument of type 'IconPack' is not assignable to parameter of...

github.com

yarn.lock ํŒŒ์ผ์— @fortawesome/fontawesome-common-types ํŒจํ‚ค์ง€๊ฐ€ ํ•œ ๊ฐœ ์ด์ƒ ์กด์žฌํ•˜๊ณ  ์žˆ์–ด์„œ ๋ฐœ์ƒํ•œ ์—๋Ÿฌ์˜€๋‹ค. ์ฝ”๋ฉ˜ํŠธ์— ์–ธ๊ธ‰๋œ ๊ฒƒ์ฒ˜๋Ÿผ ๋ถˆํ•„์š”ํ•œ ํŒจํ‚ค์ง€๋“ค์„ ์ง€์šฐ๊ณ  ๋‚˜์„œ ๋‹ค์‹œ yarn install์„ ํ•ด์ฃผ๊ณ  ๋‚˜๋‹ˆ ํ•ด๊ฒฐ๋๋‹ค. ์•ž์œผ๋กœ๋„ ๋น„์Šทํ•œ ์ƒํ™ฉ์ด ๋ฐœ์ƒํ•˜๋ฉด yarn.lock ํŒŒ์ผ์„ ํ™•์ธํ•ด๋ณด๋ฉด ๋  ๊ฒƒ ๊ฐ™๋‹ค.