Failed to locate @import file
pensierinmusica opened this issue · 3 comments
Hi,
I recently updated to the latest grunt-contrib-stylus
(0.12), and now I get two weird errors:
- a
failed to locate @import file
, - another error that I can't quite understand (
Error: app/styles/sections/constants.styl:2
).
Here's what my Grunt output looks like:
Running "stylus:compile" (stylus) task
>> Error: app/styles/sections/constants.styl:2
>> 1| $black = #222;
>> > 2| $black-light = #333;
>>
>> failed to locate @import file constants.styl
My constants.styl
file though hasn't moved, and it's in the directory defined in paths
.
Here's a copy of my Grunt configuration:
stylus: {
compile: {
options: {
paths: ['<%= yeoman.app %>/styles/sections'],
import: ['constants.styl'],
linenos: true
},
files: {
'.tmp/styles/main.css': '<%= yeoman.app %>/styles/sections/*.styl'
}
}
},
Any idea about what might be causing this bug and how to fix it? Thanks :)
Could it be a breaking change in Stylus itself?
I tried to reproduce your issue, but could not.
See the https://github.com/vladikoff/temp-stylusi82 repository. Hope it helps!
Thanks! I've taken a look at your test repo and everything seems fine there... I'll double check if there's some other Grunt task in the middle of my file that could be generating the problem. Cheers :)