Atualizei um projeto de 11 para 15.
Só que ocorre este erro
./src/styles.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Angular Material themes should be created from a map containing the keys "color", "typography", and "density". The color value should be a map containing the palette values for "primary", "accent", a./src/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined variable.
╷
5 │ 500: mat.define-palette(mat.$light-primary-text),
│ ^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\app.theme.scss 5:27 @import
src\styles.scss 37:9 root stylesheet
./src/styles.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):
SassError: Undefined variable.
╷
5 │ 500: mat.define-palette(mat.$light-primary-text),
│ ^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\app.theme.scss 5:27 @import
src\styles.scss 37:9 root stylesheet
× Failed to compile.
O que pode ser ?