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

An issue in the build process


Compilation fails after using yarn start due to a sass error in bootstrap.

Full error message is as follows:
Failed to compile.

./src/_metronic/assets/sass/style.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/_metronr/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!tronic/as./src/_metronic/assets/sass/style.scss)
SassError: $map1: default is not a map.
â•·
105 │ $utilities-text: map-merge(
│ ┌──────────────────^
106 │ │ $utilities-colors,
107 │ │ (
108 │ │ "black": to-rgb($black),
109 │ │ "white": to-rgb($white),
110 │ │ "body": to-rgb($body-color)
111 │ │ )
112 │ │ ) !default;
│ └─^
╵
node_modules\bootstrap\scss\_maps.scss 105:18 @import
node_modules\bootstrap\scss\_utilities.scss 2:9 @import
src\_metronic\assets\sass\_init.scss 19:9 @import
src\_metronic\assets\sass\style.scss 9:9 root stylesheet


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


It works now , I had to add these lines inside _maps.scss:
$utilities-text:default;
$utilities-bg:default;
$utilities-border:default;

I would appreciate it if you can suggest a cleaner solution without having to edit the bootstrap files inside the node_modules.



Hi,

Sure, we will check it for you. Which Metronic version and framework(HTML, Angular, React, Vue, etc) are you using?

Regards.


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