scss-parser icon indicating copy to clipboard operation
scss-parser copied to clipboard

Parse error with imported (@use) variables when using alias

Open szkar opened this issue 1 year ago • 0 comments

Parsing fails at the point when referring to a variable from an imported file with alias.

Example SCSS to parse:

@use 'variables' as vars;

body {
  background: vars.$background;
}

Error

Error: Selector ("class") expected "identifier" or "interpolation" (4:31)

szkar avatar Sep 01 '23 08:09 szkar