The Web Blinders logo

Programming

[SOLVED Angular] ERROR in multi ./src/styles.css ./assets/Fork-Awesome-1.1.7/css/fork-awesome.min.css Module not found: Error: Can't resolve 'F:\xx\Fork-Awesome-1.1.7\css\fork-awesome.min.css' in 'F:\xxx

I was trying to load Fork-Awesome in my angular project from assets directory, to do so I added fork-awesome to build["styles"] of angular.json

"styles": [
    "src/styles.css",
    "assets/Fork-Awesome-1.1.7/css/fork-awesome.min.css"
],

I kept getting error message and css, fonts files were not loading. Apparently, I was missing src prefix to font-awesome path as below.

"styles": [
    "src/styles.css",
    "src/assets/Fork-Awesome-1.1.7/css/fork-awesome.min.css"
],

ALTERNATE TITLES

Angular Loading css files from assets

Angular Loading font files from assets

Need developers ?

if so, send a message.

thewebblinders@gmail.com

More Programming from our blog

SEARCH FOR ARTICLES