Can't find stylesheet to import: @use '~@angular/material' as mat;
See original GitHub issueUsing the latest Angular Material version (13.0.0) the first line of my theme.scss throws an error:
SassError: Can't find stylesheet to import.
╷
2 │ @use '~@angular/material' as mat;
I’ve checked the next-versions
: it was working with 13.0.0-next.7
and stopped working from 13.0.0-next.8
on.
Issue Analytics
- State:
- Created 2 years ago
- Comments:23 (8 by maintainers)
Top Results From Across the Web
Can't find stylesheet to import. @use '~@angular/material' as ...
For Angular 13 try to remove tilde symbol ( ~ ) from the path so import like: @use '@angular/material' as mat;. It works...
Read more >scss unable to find stylesheet. - Angular - EJ 2 - Syncfusion
When I tried creating a dropdownlist with scss I get an error that it can't find the stylesheet. The error occurs when it...
Read more >Getting error "Can't find stylesheet to import" "@import 'style.scss'
The 'style. scss' is located within my assets folder and then I am trying to import it within my app/angular folder.
Read more >Angular Material Theming System - Complete Guide
Angular Material v12 included a migration from @import usage to @use for all ... &.mat-primary { #{$property}: theming.get-color-from-palette($primary, ...
Read more >Theming your own components - Angular Material
@use 'sass:map'; @use '@angular/material' as mat; $color-config: mat.get-color-config($theme); $primary-palette: map.get($color-config, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Without tilda sign works but stylint error occuring.
I no longer saw this issue once i added the following to angular.json