Open nminchow opened 1 year ago
I got the same error, but it seems like I manage to fix it by simply moving @use "@material/typography/index";
to be the last @use
-statement.
This gives the error:
@use "sass:color";
@use "@material/typography/index" as typography;
@use "@material/theme/color-palette";
// Svelte Colors!
@use "@material/theme/index" as theme with (
$primary: #ff3e00,
$secondary: #676778,
$surface: #fff,
$background: #fff,
$error: color-palette.$red-900
);
but not this:
@use "sass:color";
@use "@material/theme/color-palette";
// Svelte Colors!
@use "@material/theme/index" as theme with (
$primary: #ff3e00,
$secondary: #676778,
$surface: #fff,
$background: #fff,
$error: color-palette.$red-900
);
@use "@material/typography/index" as typography;
I got the same error, but it seems like I manage to fix it by simply moving
@use "@material/typography/index";
to be the last@use
-statement.This gives the error:
@use "sass:color"; @use "@material/typography/index" as typography; @use "@material/theme/color-palette"; // Svelte Colors! @use "@material/theme/index" as theme with ( $primary: #ff3e00, $secondary: #676778, $surface: #fff, $background: #fff, $error: color-palette.$red-900 );
but not this:
@use "sass:color"; @use "@material/theme/color-palette"; // Svelte Colors! @use "@material/theme/index" as theme with ( $primary: #ff3e00, $secondary: #676778, $surface: #fff, $background: #fff, $error: color-palette.$red-900 ); @use "@material/typography/index" as typography;
Wow, this should be the official version, the one described on the tutorial page is wrong:
Describe the bug I can't seem to use
@material/typography/mdc-typography
or@material/typography/mixins
in my_smui-theme.scss
file on a new sveltekit project without getting an error. When I try to include the helpers, I get the error below. I'm new to svelte and sveltekit, so I may be missing something simple, but I'm not sure what to try!To Reproduce Steps to reproduce the behavior:
Error
Additional context package.json: