I recently attempted to update angular from version 11 to 15, but encountered an error as shown in the screenshot below
./src/assets/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: expected "(". ╷ 90 │ $cragcity-toolbar-typography: mat.define-legacy-typography-configmat.define-legacy-typography-config( │ ^ ╵ assets\cragcity-theme.scss 90:73 @import assets\styles.scss 1:9 root stylesheet
styles.scss
@import './material-overrides.scss';
@font-face {
font-family: 'LuloCleanW01-OneBold';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('LuloCleanW01-OneBold Bold'), url(../assets/fonts/FontsFree-Net-Lulo-Clean-W01-One-Bold.ttf) format('truetype');
}
...
package.json
"name": "cragcity-website",
"version": "0.0.1",
...
cragcity-theme.scss
@import './cragcity-palette.scss';
// TODO(v15): As of v15 mat.legacy-core no longer includes default typography styles.
// The following line adds:
// 1. Default typography styles for all components
// 2. Styles for typography hierarchy classes (e.g. .mat-headline-1)
...
thanks