Skip to content

libsass does not give errors for missing imported base class in @extend #871

@akshat1

Description

@akshat1

Given the following code


.bar {
  @extend .foo;
  color: green;
}

ruby-sass gives the following error:


Error: ".bar" failed to @extend ".foo".
       The selector ".foo" was not found.
       Use "@extend .foo !optional" if the extend should be able to fail.
        on line 4 of bar.scss
  Use --trace for backtrace.

While libsass (by way of node-sass) gives:


.bar {
  color: green; }

This was performed using node-sass (2.0.0-beta). I think libsass should also throw an error instead of proceeding with the compilation. My apologies if I am seeing this incorrectly.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions