$theme does not exist in your theme config

Discussão em 'Angular' iniciado por Mohamed Elkasimi, Fevereiro 4, 2025.

  1. Im getting this $theme does not exist in your theme config issue in that first line that seemingly came out of nowhere. This code snippet is in app\node_modules@angular\material\input_input-theme.scss. I was tinkering around trying to change some default material input styling but I am not sure what caused this. How do I fix this?

    @mixin theme($theme) {
    @include theming.private-check-duplicate-theme-styles($theme, 'mat-input') {
    @if inspection.get-theme-version($theme) == 1 {
    @include _theme-from-tokens(inspection.get-theme-tokens($theme));
    }
    @else {
    @include base($theme);
    @if inspection.theme-has($theme, color) {
    @include color($theme);
    }
    @if inspection.theme-has($theme, density) {
    @include density($theme);
    }
    @if inspection.theme-has($theme, typography) {
    @include typography($theme);
    }
    }
    }
    }

    Continue reading...

Compartilhe esta Página