Closed Sgiath closed 7 years ago
I suspect that one of material-components-web
's dependencies is out of date; try upgrading with yarn upgrade
or react-scripts
.
The line number in the stack trace for mdc-button.scss
is 71
, but the last time that file had at least 71 lines was several weeks ago, so you likely have a stale version somehow.
After you try upgrading, double-check the versions in node_modules
to verify you actually have the most recent versions.
If that doesn't solve the issue, you can try temporarily editing node_modules/@material/ripple/_mixins.scss
and adding @debug "$color = '#{$color}'";
just before the rgba(...)
line. Then, when you recompile, we'll know what value it's trying to pass in, which might help us figure out what's going on.
If you're still stuck after all that, feel free to hop on our Discord #web channel and we'll be happy to help troubleshoot.
Given no further response, I'm closing this issue. Feel free to reach out as previously noted if the previous suggestions didn't help. Thanks!
MDC-Web version: 0.22.0 (have the same issue at least from 0.12.0) OS: Arch Linux 4.13.3-1-ARCH Steps to reproduce: I don't have specific steps. It happens on various project with different setups.
I start the project (usually
create-react-app
) and I setup MDC with SCSS (I want to change theme colors).src/styles.scss
:I am building the CSS with this command
node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/
and it usually works for some time (1 - 3 hours). But then suddenly this error will appear:and there is nothing I can do with it. I tried deleting
node_modules/
folder, git cloning it on another computer, etc. ... nothing works. I am not ejectingcreate-react-app
and I am usingyarn
. The weirdies thing is that it works initially but after some time it will break.Here is snapshot of my
package.json
right now (Electron but happens in web apps as well) but it happens with different configurations as well. I wasn't able to find any pattern:Thanks all for helping