Skip to content

Cannot find style '@angular/material' #108

Description

@palarnab

Describe the bug
In Angular 13 having the '~' sign before "@use" fails the build. On removing ~ from '@angular/material' fails scss-bundle with the following error:

There is an error in your styles:
[20:11:16] erro: ╷
[20:11:16] erro: 3 │ @use '@angular/material' as mat;

This fix is needed to continue to use scss-bundle in @angular^13

To Reproduce
use scss-bundle to build any file (with a mixin) having the line as the first line:

@use '@angular/material' as mat;

image

Expected behavior
scss-bundle should complete the bundle successfully

Package version: "scss-bundle": "^3.1.2",
Node version: v12.x
OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions