SAP Knowledge Base Article - Preview

3547841 - How to resolve mixin errors in SCSS files

Symptom

When building or testing Composable Storefront, the following errors can be observed:

  • Undefined mixin.

    @include cx-highContrastTheme {
      .indicators {
        button {
          background-color: var(--cx-color-background);
        }
      }
    }

  • Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
    Undefined mixin.


Read more...

Environment

SAP Commerce Cloud, Composable Storefront

Product

SAP Commerce Cloud, composable storefront all versions

Keywords

SAP Commerce Cloud, Spartacus, build failure, version update, CSS file, missing imports, component.scss, undefined mixin , KBA , CEC-SPA , SAP Commerce Cloud Spartacus , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.