For transparency i'm using:
- Webpack to install the packages
- Node version v18.18.2
When I run the npm run build I'm getting the following error:
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Can't find stylesheet to import.
@import "bootstrap/scss/functions";
../src/sass/_init.scss 19:9 @import
../src/sass/plugins.scss 10:9 root stylesheet
ERROR in ../src/sass/plugins.scss (../src/sass/plugins.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../src/sass/plugins.scss)
I HAVE NOT MADE ANY CHANGE TO THE CODE YET, ANY HELP?
Hi Roger Almató
Sorry for the inconvenience. We will fix it. In the meantime, please update these 2 files as a workaround.
- /starterkit/_keenthemes/src/sass/components/components.scss
@import "../../../tools/node_modules/bootstrap/scss/bootstrap";
@import "../../tools/node_modules/bootstrap/scss/functions";
@import "../../tools/node_modules/bootstrap/scss/variables";
@import "../../tools/node_modules/bootstrap/scss/variables-dark";
@import "../../tools/node_modules/bootstrap/scss/maps";
@import "../../tools/node_modules/bootstrap/scss/mixins";
@import "../../tools/node_modules/bootstrap/scss/utilities";