Skip to content

Compile function gets stuck if @import is used inside a media query #134

@sebastianwebb

Description

@sebastianwebb

Is there some way to debug the progress of the compile function? By enabling browser console logging or something?

I've run into an issue where the compile function gets stuck with the following invalid Sass:

@media (max-width: 600px) {

@import "scripts/test.scss";

The initial error message is

media query expression must begin with '('.

But then subsequent compile attempts (to fix the invalid code) never return anything more. It seems the compile callback function just doesn't run.

I hope you can replicate this issue and offer any advice. The contents of test.scss is:

div.test {
  color: blue;
}

Thanks for your time.
Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions