components
components copied to clipboard
bug(chip): can't find stylesheet to import (@use '@material/chips/chip-set' as mdc-chip-set;)
Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Getting below error after migrating from v14 to v15.rc
Error: Can't find stylesheet to import.
╷
4 │ @use '@material/chips/chip-set' as mdc-chip-set;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules\@angular\material\chips\_chips-theme.scss 4:1 @use
node_modules\@angular\material\core\density\private\_all-density.scss 22:1 @forward
node_modules\@angular\material\_index.scss 18:1 @use
libs\material\styles\all-theme.scss 1:1 @forward
libs\material\index.scss 4:1 @use
apps\ruf-app\src\app\demo.scss 27:1 @use
apps\ruf-app\src\app\custom-themes\fis-default-dark.scss 1:1 root stylesheet
Below line is causing this issue -
@use '@angular/material' as mat;
If I do minor change inside node_modules then this error vanishes.
File path - node_modules\@angular\material\chips\_chips-theme.scss
@use '@material/chips/_chip-set' as mdc-chip-set;
Reproduction
Steps to reproduce: 1. 2.
Expected Behavior
Styles should compile
Actual Behavior
Style compilation fails
Environment
- Angular: 15.0.0-rc.4
- CDK/Material: 15.0.0-rc.3
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
I suspect that this is an issue with your build setup. In Sass the @material/chips/chip-set
and @material/chips/_chip-set
paths are treated the same.
Closing since there hasn't been any activity.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.