Skip to content

Maybe a bug with 8.0.0-beta.2? #678

Open
@kevinFeng0106

Description

@kevinFeng0106

Describe the bug
i'm using svelte with npm create vite@latest and i did not choose sveltekit

when i use a @use statement like this:

@use '@smui/paper/mixins' as paper;

it ends up an error:

[sass] Error: Error: Missing "./mixins" specifier in "@smui/paper" package
  ╷
4 │ @use '@smui/paper/mixins' as paper;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

but when i use @use stament to import the @material/theme like this:

@use '@material/theme/color-palette';

it works nice without error

Expected behavior
@use '@smui/paper/mixins' as paper; can work without an error

Screen shots
this is the @smui/paper package directory, and i find it has a _mixins.scss file
image

what's the reason for this problem and how to solve it? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions