sintaxi / harp

Static Web Server/Generator/Bundler
http://harpjs.com
5k stars 342 forks source link

Stylus not compiling #576

Closed wontron closed 4 years ago

wontron commented 8 years ago

I'm running Harp v0.21.0, and I'm unable to compile a basic Stylus file. At first I thought it was an issue with an @import, but my current main.styl to test with is just:

body
   color green

In my public/_layout.jade, I include: link(rel="stylesheet", type="text/css", href="/assets/css/main.css")

The error message appears at the top of my page as a body::before element with yellow background-color. Any change that is saved will first print the error: "Stylus -> CSS (Path must be a string. Received undefined) /path/to/main.styl" and in Terminal (running harp server):

{ body
  color green
  filename: '/path/to/main.styl',
  lineno: 2,
  source: 'Stylus',
  dest: 'CSS',
  name: 'Stylus Error' }

Any refresh of the page after that will print: "Stylus -> CSS () /path/to/main.styl and in Terminal:

{ body
  color green
  filename: '/path/to/main.styl',
  lineno: NaN,
  source: 'Stylus',
  dest: 'CSS',
  name: 'Stylus Error' }

I have Stylus installed globally as well, and if I run stylus -w /path/to/main.styl, it compiles to main.css and Harp is able to include that correctly (i.e. it reads the compiled main.css instead of looking for main.styl to compile, and all body text appears green).

Any ideas on what's going on? Thank you!

jaubut commented 7 years ago

same error here

sethwhitton commented 7 years ago

Suffering with this error as well