So I have this situation after when I run yarn build, I get this:
Creating an optimized production build...
Failed to compile.
Cannot read property 'toLowerCase' of undefined
CompileError: Begins at CSS selector .checkbox.checkbox-accent>span
I traced everything to this SCSS region:
&.checkbox-accent {
> span {
border-width: get($checkbox-config, types, accent, borderWidth) !important;
border-style: solid !important;
background-color: transparent !important;
&:after {
display: block;
}
}
}
When this is commented out, yarn build works without errors. I am looking for suggestions on possible reasons for this error.