material-experimental Sass compile error
See original GitHub issueI tried to create a workplace, experimenting with mdc-components, but I get an error while trying to include the theme. I followed the outdated readme, but I could not figure out how to make it work.
Reproduction
https://github.com/Totati/angular-components-mdc
git clone git@github.com:Totati/angular-components-mdc.git npm install npm start
Actual Behavior
Throws error
ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/dist/cjs.js??ref--15-3!./src/styles.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: This variable is available from multiple global modules:
• node_modules\@material\checkbox\_variables.scss
• node_modules\@material\checkbox\_variables.scss
╷
21 │ $mdc-checkbox-mark-color: mdc-theme-prop-value(on-primary) !global;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules\@angular\material-experimental\mdc-checkbox\_mdc-checkbox.scss 21:5 @import
C:\Repos\angular-components-mdc\src\styles.scss 5:9
Environment
Angular CLI: 9.0.0-rc.12
Node: 10.16.0
OS: win32 x64
Angular: 9.0.0-rc.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.900.0-rc.12
@angular-devkit/build-angular 0.900.0-rc.12
@angular-devkit/build-optimizer 0.900.0-rc.12
@angular-devkit/build-webpack 0.900.0-rc.12
@angular-devkit/core 9.0.0-rc.12
@angular-devkit/schematics 9.0.0-rc.12
@angular/cdk 9.0.0-rc.9
@angular/cli 9.0.0-rc.12
@angular/material 9.0.0-rc.9
@angular/material-experimental 9.0.0-rc.9
@ngtools/webpack 9.0.0-rc.12
@schematics/angular 9.0.0-rc.12
@schematics/update 0.900.0-rc.12
rxjs 6.5.4
typescript 3.6.5
webpack 4.41.2
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:11 (3 by maintainers)
Top Results From Across the Web
reactjs - React build failed with error export 'experimental_sx ...
Failed to compile. export 'experimental_sx' (reexported as 'experimental_sx') was not found in '@mui/ ...
Read more >sass compile error - Material Design for Bootstrap
I attempted a compile using Koala for desktop as well as git shell (powershell) and experienced the same error in both processes: sass...
Read more >sass-loader | Yarn - Package Manager
You can find more information here. ... "modern" API is experimental, so some features may not work (known: built-in importer is not working...
Read more >Styling & Themes - Compiling Themes - KendoReact - Telerik
css from source ./sass/kendo-theme.scss . Please note: We include /dist/all.scss , which is a flattened single-file version of the ...
Read more >esbuild-sass-plugin - npm
esbuild plugin for sass/scss files supporting both css loader and css ... The options passed to the plugin are a superset of Sass...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Similar error. Looks like a disconnect on Sass interpreters…
Reproduction
In angular.json add the include path for style preprossessor
In the app.module.ts add the mdc checkbox
Add the markup to the app.component.html and
isChecked
property to app.component.tsIf I compile or serve the site, it renders the checkbox in the page…
Now to break it. In the theming.scss add the styling and typography for the mdc checkbox
Build output
Environment
This may be related to the following issue. https://github.com/webpack-contrib/sass-loader/issues/804