Open KevinVandy opened 3 years ago
same problem.
npm i sass -D
maybe?
@Egnus i tried. but it still happen..
It depends a lot on what method you are using to install. But in most of the cases I recommend you to have @material/theme
installed in your devDeps.
@Egnus i already installed @material/theme
but not working.. :(
i solved this problem. SOLUTION: update repository's node version (12.14.1 -> 16.13.0) and i update dev dependencies. let's try this.
I completely started a new project again a few days later, and then installed the dependencies one by one, and now it works fine. So I'm guessing some dependency that smui-theme uses got updated and fixed.
If you are still running into this problem, try deleting node_modules and your lock file, and then reinstalling.
I completely started a new project again a few days later, and then installed the dependencies one by one, and now it works fine. So I'm guessing some dependency that smui-theme uses got updated and fixed.
If you are still running into this problem, try deleting node_modules and your lock file, and then reinstalling.
thanks! it's working well now.
I don't have a lockfile, I'm installing every dependency from scratch, I still get this error.
So it turns out that the real solution is to make sure all @material/* packages are at a max of version 11 since that is what SMUI uses. I downgraded @material/typography to v11 and it works fine.
Describe the bug Cannot run smui-theme or prepare commands to compile CSS. Get a Undefined mixin error of
@include theme.validate-keys($light-theme, $theme);
To Reproduce
npx smui-theme template src/theme
The resulting _smui-theme.scss is
npm run smui-theme
results in an error and no CSS compilation.Expected behavior Smui-theme prepare should work after following the docs.
Desktop (please complete the following information):
Additional context This was working last week, I noticed that it stopped working for multiple of my projects this week. I have a larger project with this error here: https://github.com/KevinVandy/multi-monitor_calculator
But also, this error is happening on a brand new skeleton project that I described above, so I don't know what changed to cause this problem. I ran a
npm update --latest
a few days ago, and ever since then, I have not been able to get any smui sass compilation.