Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Sass error: $color2: ... is not a color


ERROR in ./resources/assets/demo1/sass/plugins.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: $color2: var(--bs-gray-900) is not a color.
â•·
212 │ @return mix(black, $color, $weight);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/_functions.scss 212:11 shade-color()
node_modules/bootstrap/scss/_variables.scss 1147:37 @import
resources/assets/demo1/sass/_init.scss 19:9 @import
resources/assets/demo1/sass/plugins.scss 10:9 root stylesheet
at processResult (/var/www/html/node_modules/webpack/lib/NormalModule.js:758:19)
at /var/www/html/node_modules/webpack/lib/NormalModule.js:860:5
at /var/www/html/node_modules/loader-runner/lib/LoaderRunner.js:400:11
at /var/www/html/node_modules/loader-runner/lib/LoaderRunner.js:252:18
at context.callback (/var/www/html/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
at Object.loader (/var/www/html/node_modules/sass-loader/dist/index.js:69:5)

ERROR in ./resources/assets/demo1/sass/style.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: $color2: var(--bs-gray-900) is not a color.
â•·
212 │ @return mix(black, $color, $weight);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/_functions.scss 212:11 shade-color()
node_modules/bootstrap/scss/_variables.scss 1147:37 @import
resources/assets/demo1/sass/_init.scss 19:9 @import
resources/assets/demo1/sass/style.scss 6:9 root stylesheet
at processResult (/var/www/html/node_modules/webpack/lib/NormalModule.js:758:19)
at /var/www/html/node_modules/webpack/lib/NormalModule.js:860:5
at /var/www/html/node_modules/loader-runner/lib/LoaderRunner.js:400:11
at /var/www/html/node_modules/loader-runner/lib/LoaderRunner.js:252:18
at context.callback (/var/www/html/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
at Object.loader (/var/www/html/node_modules/sass-loader/dist/index.js:69:5)

2 ERRORS in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 4 errors


getting this error when first compiling webpack, laravel_app_v8.1.7


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 (7)


Celebrate your triumph with pride as you unveil your exceptional success in the CISM exam! The year 2023 marks the moment when your dedication and expertise converged to achieve brilliance. Your CISM pass results are not just numbers; they represent a testament to your mastery of information security management. Elevate your career to new heights and showcase your commitment to excellence. Join the league of elite professionals who have conquered the CISM challenge. Your success story begins now, and the future holds endless possibilities. Congratulations on becoming a certified ISACA CISM professional in 2023!



Thanks, JobiwanD. This is probably the bootstrap version issue. Please try yo update the bootstrap version in package.json.


"bootstrap": "5.3.0-alpha1",


Thanks



thanks, resolved



Hi Faizal,

Any particular reason why Metronic is running on bleeding egde unstable dependencies?

What stops us from running on latest stable (5.2.3)



Hello,

I had the same issue. To fix it, I checked the version of bootstrap dependency and bumped it to 5.3.0-alpha1 in package.json. Hope it helps you.



Hi,

May I know which Laravel are you using? Laravel starterkit or Laravel app?

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  :(