I am at the optimisation stage and have, up to this point, been importing material-components-web
. Now, I want to import the entire library as separate packages so that I can comment out the modules that I'm not using. So, I read the docs and added the JavaScript imports and initialisations and the SASS @use
s and @include
s for every package and renamed duplicate style
namespaces and commented out the duplicate @use
references. However, I am fighting with an undefined mixin.
Error
Undefined mixin.
╷
77 │ @include icon-button.core-styles; // Undefined mixin
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
stdin 77:1 root stylesheet
Here is a codesandbox with just the JS imports and SCSS @use
and @include
statements demonstrating the issue.