Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@extend; causes an unexpected exception #2497

Closed
xorraxraxret opened this issue Jan 20, 2025 · 0 comments · Fixed by #2499
Closed

@extend; causes an unexpected exception #2497

xorraxraxret opened this issue Jan 20, 2025 · 0 comments · Fixed by #2499
Labels

Comments

@xorraxraxret
Copy link

xorraxraxret commented Jan 20, 2025

Reproduction:

.a {
    @extend;
}

Log:

Unexpected exception:
TypeError: null: type 'JSNull' is not a subtype of type 'Expression'

node_modules/sass/sass.dart.js 2286:43   Object.wrapException
node_modules/sass/sass.dart.js 3798:15   Object._failedAsCheck
node_modules/sass/sass.dart.js 3787:9    Rti._generalAsCheckImplementation
node_modules/sass/sass.dart.js 3734:22   Rti._installSpecializedAsCheck
node_modules/sass/sass.dart.js 56647:31  InterpolationMap._mapLocation$1
node_modules/sass/sass.dart.js 56551:22  InterpolationMap.mapSpan$1
node_modules/sass/sass.dart.js 56535:24  InterpolationMap.mapException$1
node_modules/sass/sass.dart.js 58600:34  SelectorParser.wrapSpanFormatException$1$1
node_modules/sass/sass.dart.js 58642:19  SelectorParser.wrapSpanFormatException$1
node_modules/sass/sass.dart.js 59439:19  SelectorParser.parse$0

Expected:
An error response similar to the one that occurs when doing the same with other functions, eg. @use;

@nex3 nex3 added the bug label Jan 21, 2025
@nex3 nex3 transferred this issue from sass/sass Jan 21, 2025
nex3 added a commit to sass/sass-spec that referenced this issue Jan 22, 2025
nex3 added a commit to sass/sass-spec that referenced this issue Jan 22, 2025
nex3 added a commit that referenced this issue Jan 22, 2025
nex3 added a commit to sass/sass-spec that referenced this issue Jan 22, 2025
nex3 added a commit that referenced this issue Jan 22, 2025
@nex3 nex3 closed this as completed in f4908e7 Jan 22, 2025
nex3 added a commit to sass/sass-spec that referenced this issue Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants