Jag
Jag

Reputation: 169

Build error while referring .scss with open iconic package

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.

enter image description here

Upvotes: 2

Views: 514

Answers (1)

Elias
Elias

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

Related Questions