microsoft/just

sass task eats errors

Opened this issue · 4 comments

I have an scss file with a malformed import statement. When attempting to compile this file with just, I see an uninformative error. It would appear that nodeSass returns only the first line of the error with the message property, while the actual error resides on further lines. However, the formatted property does include the value.

Expected:

$ npm just-scripts sass
[10:58:33 AM] x Error detected while running 'sass'
[10:58:33 AM] x ------------------------------------
[10:58:33 AM] x src/components/Todo.scss
Error: File to import not found or unreadable: .
        on line 1 of src/components/Todo.scss
>> @import '~office-ui-fabric-react/dist/sass/References';
                    ^
[10:58:33 AM] x ------------------------------------
[10:58:33 AM] x Error previously detected. See above for error messages.

Actual

$ npx just-scripts sass
[10:57:33 AM] ■ started 'sass'
[10:57:33 AM] x Error detected while running 'sass'
[10:57:33 AM] x ------------------------------------
[10:57:33 AM] x src/components/Todo.scss: Error: File to import not found or unreadable: .
[10:57:33 AM] x ------------------------------------
[10:57:33 AM] x Error previously detected. See above for error messages.

Want to put a PR together to fix this?

Issues seem to have gone stale.

Pretty sure this is still an issue.

Recently confirmed this is still happening. Also it doesn't exit on errors, just hangs.