oes's avatar
Level 3

failed @import on sass

So I have done this plenty of times with no problems at all but this is a new 5.2 app and I am having a wired issue with @import.

So my very simple sass file like so.

\\app.scss
@import "node_modules/bootstrap/scss/bootstrap";
@import "variables";

Its importing bootstrap fine but its not importing my variables file. Screenshot if it helps. http://d.pr/i/10Cr8

And my gulp file.

elixir(function(mix) {
    mix.sass('app.scss');
});

You really cant get any easier than this.. I have it in multiple other sites...

Error

{ [Error: resources/assets/sass/app.scss
Error: File to import not found or unreadable: variables
       Parent style sheet: stdin
        on line 2 of stdin
>> @import "variables";
   ^

Anyone else have this problem with 5.2 or had this before?

0 likes
6 replies
oes's avatar
Level 3

Yes. And Bootstrap is not this issue.

Curtis's avatar

I'm getting this issue too, I'm currently watching the "Laravel 5.2: From Scratch" series, and am currently on, "Flashing To The Session". My styling isn't applied when importing "components/Alert.scss". I've re-watched the episode many times to check my code for syntax errors, but everything looks correct.

Cronix's avatar

@Curtis Why would you use 5.2? It's 2.5 years old and a lot has changed since then.

Please or to participate in this conversation.