Closed
Description
As of 0.14.4+ there is an error when looking at .scss
files and trying to use:
// '$font-family: theme('fontFamily.sans' does not exist in your theme config.(invalidConfigPath)
$font-family: theme('fontFamily.sans'),
// color: $palettes' does not exist in your theme config.(invalidConfigPath)
// this has nothing to do with tailwind... but its freaking out over $palletes which is a variable in my scss
$light-theme: mat.m2-define-light-theme(
(
color: $palettes,
)
);
Oddly enough if I hover over it, it shows the fonts in the vscode tooltip. When I downgrade to 0.14.3 the errors disappear. Nothing has changed in my codebase for months, besides the extension update.
However if its nested it works for example
@include mat.all-component-themes(
(
color: null,
density: 0,
typography:
mat.m2-define-typography-config(
$font-family: theme('fontFamily.sans'), // <-------- THIS ONE THROWS AN ERROR
$headline-1:
mat.m2-define-typography-level(
1.875rem,
2.25rem,
800,
theme('fontFamily.sans') // <------------- THIS ONE DOES NOT, WORKS FINE
),
...
If I comment out the first error, it just moves on to the next... like it has a regex problem or something
Metadata
Metadata
Assignees
Labels
No labels