[Fixed] Angular – FontAwesome Dependencies missing error

Issue

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?

Solution

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

Leave a Reply

(*) Required, Your email will not be published