Reputation:
harpjs won't compile stylus *.styl
stylesheets when using harp server, harp server
.
This is the error I get when I try to use main.styl
as a stylesheet, linking it with main.css
within my index.jade
document (Jade is working perfectly, with no errors, I also tried using html documents instead of jade, but the issue was not resolved unfortunately.)
However, as soon as I add an empty main.css
file in my file structure, the error disappears, although, no styles are applied (it's an empty document, what should I expect though right?)
So, I was wondering if anyone has come across this error, or abnormality before, and if so, how they fixed it,
Things I've Tried
npm install -g stylus
)npm install -g harp
)npm install -g pug
)npm install -g pug
)All of which, unfortunately, didn't fix the issue.
Upvotes: 0
Views: 322
Reputation:
I have a solution. Terraform is the pre-processor engine of harp and uses stylus 0.53.0, I update to stylus 0.54.5 (the lastest version) and now works.
I search terraform in harp directory: harp\node_modules\terraform\node_modules
and update stylus: npm install [email protected] --save
Upvotes: 1
Reputation:
I didn't really fix it entirely, however, I did find a workaround.
As I use sublime text, I found a really nice stylus plugin, which allow for compilation on save, a really cool feature. So, basically, I'm just using harp as a jade preprocessor now which is ok, but hey, it sort of works now.
Upvotes: 0