Reputation: 169
I am working with bootstrap 4 scss with open-iconic package. when I refer import '~open-iconic/font/css/open-iconic-bootstrap.scss from style.scss, I am facing below error. any suggestions please.
Upvotes: 2
Views: 514
Reputation: 185
This worked for me:
$icon-font-path: "~open-iconic/font/fonts/";
@import "~open-iconic/font/css/open-iconic-bootstrap";
I had a similar problem trying to work with Angular 5. It seems webpack isn't resolving the relative path in iconic's file correctly. It's trying to resolve it relative to the app folder.
Upvotes: 3