Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Error messages readable in the browser #2663

Open
JQOz opened this issue May 5, 2019 · 0 comments
Open

Error messages readable in the browser #2663

JQOz opened this issue May 5, 2019 · 0 comments

Comments

@JQOz
Copy link

JQOz commented May 5, 2019

when Ruby Sass encounters an error, by default it produces a CSS file that includes the error message and stack trace in a comment as well as in the content property of a body::before style rule in order to make it immediately visible during users' edit/refresh cycle. Dart Sass and Node Sass don‘t do this currently.

How can I anable this method on Node Sass?

@saper saper changed the title How to display error mesages on browser? Error messages readable in the browser Oct 17, 2019
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Now correctly errors on inputs such as this one instead of crashing (see sass#2663):

```scss
div {
  a: selector-append('.menu', 'li', '&');
}
```

```
Error: Parent selectors aren't allowed here.
        on line 3:37 of ../../../tmp/test.scss, in function `selector-append`
        from line 3:6 of ../../../tmp/test.scss
>>   e: selector-append('.menu', 'li', '&');

   ------------------------------------^
```
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants