Skip to content

Error: Can't find stylesheet to import. Mako build failed with sass used "@import '~xxx/variables.scss';" #1767

@neohan666

Description

@neohan666

Describe the bug

mako使用sass,配置了sassLoader: {},安装了sass@1.77.6依赖,本地能正常运行,但是构建失败,报错:Can't find stylesheet to import.
貌似是不支持使用了波浪号~开头的导入方式?
因为导入scss语法是第三方包里的,我需要想办法兼容。

Image

Image

Reproduction

none

Logs

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions