Description
Example (HRX)
<==> input.scss
.foo {
@import 'upstream';
}
<==> upstream.scss
@use 'other';
@mixin a() {
b: c;
}
@include a;
<==> _other.scss
// empty, it doesn't matter
This crashes because evaluate.dart
checks for the declaration's "parent's parent". And I guess the reference isn't there.
dart-sass/lib/src/visitor/evaluate.dart
Line 1345 in a42380f
Interestingly, this doesn't crash if we...:
- remove the
@use
rule - replace
@use
for a built-in module like@use 'sass:math'
- wrap
@include a
with&{}
- remove the wrapping rule
.foo{}
(it does fail because the delcarataion ends up without a container, but it at least it doesn't crash)