font-awesome-sass-loader icon indicating copy to clipboard operation
font-awesome-sass-loader copied to clipboard

File to import not found or unreadable: ~font-awesome/scss/variables.

Open AndrewRayCode opened this issue 7 years ago • 5 comments

Copying the sass config from this project and using that as the config:

ERROR in ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./node_modules/font-awesome-sass-loader/font-awesome-sass-styles.loader.js!./webpack/font-awesome.config.js
Module build failed:
module.exports = {
^
      File to import not found or unreadable: ~font-awesome/scss/variables.
Parent style sheet: stdin
      in /Users/me/dev/webpack/font-awesome.config.js (line 1, column 1)

AndrewRayCode avatar Mar 11 '18 21:03 AndrewRayCode

I have the same error.. any solution for this yet?

ronjb04 avatar Apr 29 '18 13:04 ronjb04

Idem dito

jeroendesloovere avatar Jun 15 '18 08:06 jeroendesloovere

I guess the main reason is that did not install font awesome dependency. Try this: npm i font-awesome

DavraYoung avatar Feb 03 '19 14:02 DavraYoung

@import '@fortawesome/fontawesome-free/css/fontawesome.css'; @import '@fortawesome/fontawesome-free/css/all.css';

apurbajnu avatar May 30 '20 17:05 apurbajnu

@import '@fortawesome/fontawesome-free/css/fontawesome.css'; @import '@fortawesome/fontawesome-free/css/all.css';

It worked for me

caioagiani avatar Mar 04 '21 20:03 caioagiani