I am currently working on integrating bootstrap into my project directory using npm. Below is an overview of my file structure:
https://i.sstatic.net/HjExY.png
Within my style.scss file, I am utilizing the @import feature to include Bootstrap as follows:
@import "../node_modules/bootstrap/scss/bootstrap";
This setup is based on a starter kit I found on this website - minimum-static-site-sass-setup
{
"name": "playground",
"version": "0.1.0",
"description": "SASS compile|autoprefix|minimize and live-reload dev server using Browsersync for static HTML",
"main": "public/index.html",
"author": "5t3ph",
"scripts": {
/* Scripts details omitted for brevity */
},
/* Dependencies list omitted for brevity */
}
However, each time I attempt to compile the project, I encounter the following error message:
"Error: Can't find stylesheet to import.
╷
6 │ @import "../node_modules/bootstrap/scss/bootstrap";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\sass\style.scss 6:9 root stylesheet"
Despite researching various solutions on platforms like Stack Overflow, none of them have resolved the issue so far.
Any insights on what might be causing this error would be greatly appreciated?