You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STR:
Add @use 'sass:color'; to _colors.scss and try to build styleguide
Result:
Warn: Atlas: Could not compile configuration file. Styleguide page and consistency checks could not be prepared.
Ensure that "scssAdditionalImportsArray" has all additional imports paths.
Error: @use rules must be written before any other rules.
╷
71 │ @use 'sass:color';
│ ^^^^^^^^^^^^^^^^^
╵
stdin 71:1 root stylesheet
file models\projectconstants.js combined scss for mustache has an error
functioncompileStyles(constantsData,additionalSassImports){consttemplate='{{>constantsFile}} {{#constants}} {{constNameSafe}} { color: {{constName}} } {{/constants}}';letcssString='';try{conststyles=sass.renderSync({data: mustache.render(template,{constants: constantsData.rawConstants},{constantsFile: constantsData.fileString}),includePaths: additionalSassImports});cssString=styles.css.toString();}catch(error){console.log('Warn: Atlas: Could not compile configuration file. '+'Styleguide page and consistency checks could not be prepared.\n'+'Ensure that "scssAdditionalImportsArray" has all additional imports paths.\n',error.formatted);}returncssString;}
The text was updated successfully, but these errors were encountered:
STR:
Add
@use 'sass:color';
to_colors.scss
and try to build styleguideResult:
file
models\projectconstants.js
combined scss for mustache has an errorThe text was updated successfully, but these errors were encountered: