I'm encountering a compile-time error. Even though the font-awesome folder is located in the node modules, I am still receiving a compile-time error during compilation. Here is a snippet of my angular.json file:
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/font-awesome/css/font-awesome.min.css",
"src/styles/theme.scss",
"src/styles/layout.scss",
"src/styles/common.scss",
"src/styles/material.scss",
"src/styles/printfile.scss"
],
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/popper.js/dist/umd/popper.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js"
],
"assets": ["src/favicon.ico", "src/assets"]
}
},
This is how I have imported font-awesome:
$fa-font-path: "../node_modules/font-awesome/fonts";
@import "node_modules/font-awesome/css/font-awesome.css";
Could someone please inform me about what exactly I might be overlooking?