sleek-bootstrap icon indicating copy to clipboard operation
sleek-bootstrap copied to clipboard

SCSS boostrap path error when installing from npm

Open alanbernale opened this issue 5 years ago • 3 comments

When installing from npm, importing into project sass files and loading using webpack, it throws the following error: SassError: File to import not found or unreadable: ../node_modules/bootstrap/scss/bootstrap.scss. on line 3 of node_modules/sleek-dashboard/scss/sleek.scss

Archivo sleek.scss en node_modules/sleek-dashboard/scss: @import "../node_modules/bootstrap/scss/bootstrap.scss";

The error can be corrected by changing the path to: @import "~bootstrap/scss/bootstrap";

alanbernale avatar Jul 20 '20 07:07 alanbernale

@alanbernale @polynar @import "~bootstrap/scss/bootstrap"; does not work for direct use (git clone). Do you have any solution?

iamabdus avatar Sep 17 '20 20:09 iamabdus

What do you mean direct use? If someone doesn't want to use npm packages then use the compiled css in dist/assets folder and if you want to use scss and add customization to it use npm packages and install bootstrap package.

Please tell me if I see the things wrong.

draxvint avatar Sep 23 '20 17:09 draxvint

@polynar If you fork or git clone the Sleek and run it, @import "~bootstrap/scss/bootstrap"; does not work.

iamabdus avatar Sep 27 '20 19:09 iamabdus