ng-matero / extensions

Angular Material Extensions Library.
https://ng-matero.github.io/extensions/
MIT License
388 stars 48 forks source link

M3 theme error #294

Closed moh2a closed 1 month ago

moh2a commented 1 month ago

I have the following error when using new material 3 theme :

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Undefined function.
   ╷
47 │       @include _theme-from-tokens(mat.get-theme-tokens($theme));
   │                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  node_modules\@ng-matero\extensions\alert\_alert-theme.scss 47:35      @content
  node_modules\@angular\material\core\theming\_theming.scss 338:7       @content
  node_modules\@angular\material\core\theming\_theming.scss 429:3       -check-duplicate-theme-styles-v1()
  node_modules\@angular\material\core\theming\_theming.scss 331:5       private-check-duplicate-theme-styles()
  node_modules\@ng-matero\extensions\alert\_alert-theme.scss 45:3       theme()
  node_modules\@ng-matero\extensions\core\theming\_all-theme.scss 20:5  @content
  node_modules\@angular\material\core\theming\_theming.scss 338:7       @content
  node_modules\@angular\material\core\theming\_theming.scss 429:3       -check-duplicate-theme-styles-v1()
  node_modules\@angular\material\core\theming\_theming.scss 331:5       private-check-duplicate-theme-styles()
  node_modules\@ng-matero\extensions\core\theming\_all-theme.scss 19:3  all-component-themes()
  src\styles.scss 43:3                                                  root stylesheet
nzbin commented 1 month ago

I'm sorry, it doesn't support M3 theme now. There's a lot of work to be done.

nzbin commented 1 month ago

The new version 17.2.0 has supported m3, please have a try. https://github.com/ng-matero/extensions/releases/tag/v17.2.0

moh2a commented 1 month ago

It works, thank you!