简体   繁体   中英

I have install npm install fontawesome-free, still gives me this error

'ERROR in multi../NGRX-Products/node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss../NGRX-Products/node_modules/@fortawesome/fontawesome-free/scss/brands.scss../NGRX-Products/node_modules/@fortawesome/fontawesome-free/scss/solid.scss./src/styles.scss'

Following files included in the style.scss

@import 'node_modules/@fortawesome/fontawesome-free/scss/brands';
@import 'node_modules/@fortawesome/fontawesome-free/scss/regular';
@import 'node_modules/@fortawesome/fontawesome-free/scss/solid';
@import 'node_modules/@fortawesome/fontawesome-free/scss/fontawesome';

I run npm install font-awesome --save-dev on my angulas.json

"styles": ["../NGRX-Products/node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss",
    "../NGRX-Products/node_modules/@fortawesome/fontawesome-free/scss/brands.scss",
                  "../NGRX-Products/node_modules/@fortawesome/fontawesom`enter code here`e-free/scss/solid.scss",
                  "src/styles.scss"

You should use angular-fontawesome. Here are the instructions: https://github.com/FortAwesome/angular-fontawesome .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM