[Radio] Undefined mixin
See original GitHub issueBug report
When upgrade to 8.0.0
, @include radio.core-styles
causes an undefined mixin error.
Steps to reproduce
Follow the README.
Here is the code;
@use '@material/form-field';
@use '@material/radio';
@include form-field.core-styles;
@include radio.core-styles;
Actual behavior
ERROR in ./src/ui/dialog/details/style.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/dialog/details/style.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined mixin.
╷
7 │ @include radio.core-styles;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src/ui/dialog/details/style.scss 7:1 root stylesheet
Your Environment:
Software | Version(s) |
---|---|
MDC Web | 8.0.0 |
Browser | Firefox |
Operating System | Ubuntu 16.04 & 18.04 |
Possible solution
Could be resolved by updating to:
@use '@material/form-field';
@use '@material/radio/mdc-radio';
@include form-field.core-styles;
// @include radio.core-styles;
I’m not familiar with Sass and not sure if it’s the correct way to use it.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Sass compiler throws 'undefined mixin' error ... - Stack Overflow
Sass compiler throws 'undefined mixin' error when mixins are kept in seperate folder · Sass doesn't throw this error for no reason, and...
Read more >@material/radio - NPM Package Overview - Socket
Start using Socket to analyze @material/radio and its 10 ... radio: Modify theme styles Sass mixin validation to validate only keys (390220e) ...
Read more >Ext.form.field.Radio | Ext JS 6.2.0 - Sencha Documentation
The rendering template for the field decorations. Component classes using this mixin should include logic to use this as their renderTpl, and implement...
Read more >dijit/form/RadioButton (1.9) - The Dojo Toolkit
Returns:undefined. buildRendering(). Defined by dijit/_WidgetBase. Construct the UI for this widget, setting this.domNode. Most widgets will mixin dijit.
Read more >Core/widget/Radio | Bryntum TaskBoard
Radio The Radio widget wraps an element. Color can be specified and ... Applies one or more mixins to this class and returns...
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
Okay, then I will keep this issue open until the team update the README or code.
I have a exactly the same issue with
@include button.core-styles
. It works with@use 'material/button/styles'
. But since i need to use the radio also, using@use 'material/button/styles'
and@use 'material/radio/styles'
, throw this error -Error: There's already a module with namespace "styles"
. How do I use them together…?