Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular - FontAwesome Dependencies missing error

I am trying to install Font Awesome in my angular project. Installed using the following command in terminal

ng add @fortawesome/[email protected]

It installed successfully. Now it is giving dependency error.

The target entry-point "@fortawesome/angular-fontawesome" has missing dependencies: - @fortawesome/fontawesome-svg-core - @fortawesome/fontawesome-common-types enter image description here

I checked package.json and both of these exist there. enter image description here

enter image description here

What am i doing wrong?

like image 497
Saad Bashir Avatar asked May 23 '26 11:05

Saad Bashir


2 Answers

As suggested by @Yaroslav, I deleted the node_modules folder and ran npm install. This fixed the issue.

like image 180
Saad Bashir Avatar answered May 25 '26 02:05

Saad Bashir


I know I'm late but incase anybody struggling with the same issue I can suggest not to do anything but to restart the angular serve which will basically compile the new added packages and the reason why this issue happen is the angular cli doesn't compile the packages while the serve is running

like image 21
Mustafa Jawad Abdulla Sarhan Avatar answered May 25 '26 00:05

Mustafa Jawad Abdulla Sarhan