SASS fails importing Bootstrap
Posted: Thu Feb 25, 2021 4:28 pm
Hi,
I'm trying to design my own theme. I'm quite new to scss and bootstrap.
When i try compiling scc file to css (node-sass assets/themes/mytheme/scss/styles.scss -o assets/dist/), i have the following message :
I have installed Boostrap following the documentation (with npm). What am i missing ?
Thanks.
I'm trying to design my own theme. I'm quite new to scss and bootstrap.
When i try compiling scc file to css (node-sass assets/themes/mytheme/scss/styles.scss -o assets/dist/), i have the following message :
Code: Select all
{
"status": 1,
"file": "/var/www/html/phpmyfaq/assets/themes/mytheme/scss/styles.scss",
"line": 20,
"column": 1,
"message": "File to import not found or unreadable: ~bootstrap.",
"formatted": "Error: File to import not found or unreadable: ~bootstrap.\n on line 20 of assets/themes/mytheme/scss/styles.scss\n>> @import '~bootstrap';\n\n ^\n"
}
Thanks.