The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

Metronic Django npm run build failure: Can't find stylesheet to import.


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?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)

 
Deleted comment
 
Deleted comment

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";


- /starterkit/_keenthemes/src/sass/_init.scss

@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";


Deleted comment

Thanks for the response. I did download the template last november, but I got an email with the latest tailwind releases. When logging in to themeforest and downloading the latest version, I don't have a sass folder. When I open the metronic-v9.2.7 and I open the metronic-html-starter-kit the src directory only contains css, app, core and vendors directory. So there is no scss. The css directory contains the styles.css, config.ktui.css and the demos and components directory. Where should I add those things? Thank you!


Hi Roger Almató

Metronic v9 has transitioned from Bootstrap with SCSS (used in v8) to Tailwind CSS v4, there's no scss folder.

If you have an existing v8 project that's working well, I recommend staying with v8 unless you have specific reasons to upgrade. Bootstrap is no longer providing active updates.

Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.