#Angular 17 Update

4 messages · Page 1 of 1 (latest)

dreamy pebble
#

I have just converted application to angular 17 . Material theme.scss file showing this error . Angular 17 - Material Updation -Can't find stylesheet to import.
@use '@angular/material/theming

#

./src/app/theme.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Can't find stylesheet to import.

6 │ @use '@angular/material/theming';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src\app\theme.scss 6:1 root stylesheet

./src/app/theme.scss?ngGlobalStyle - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Can't find stylesheet to import.

38 │ @import '@angular/material/theming';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^

src\app\theme.scss 38:9 root stylesheet

boreal cradle
#

what version where you using before the upgrade?

dreamy pebble
#

Angular / Material - 16.2.11