balupton/docpad — Issue #88: "Something went wrong while" trying to import one stylus file into another
Author: mattmcmanus
Created: 2011-10-25 20:39:03+00:00
State: open

This problem is similar to that of issue #67. I'm running into issues importing files. When I try to generate all I get is:

info: Generating...
→ [2011-10-25 16:26:11.147] [/Users/matt/local/lib/node_modules/docpad/lib/docpad.coffee:631] [Docpad.generateAction]
warning: Something went wrong while rendering: styles/style.css.styl
→ [2011-10-25 16:26:11.229] [/Users/matt/local/lib/node_modules/docpad/lib/file.coffee:249] [_Class.]

At first I thought it was something with nib, because I started the process after reading issue #67 but then I tried two simple files in the same dir and I still received the same error

src/styles/style.css.styl

@import 'vender'

.button
box-shadow 1px 1px 2px #ccc

src/styles/vender.styl

vendor(prop, args, only = null, ignore = null)
for prefix in vendor-prefixes
unless (only and !(prefix in only)) or (ignore and prefix in ignore)
if official == prefix
{prop}: args
else
{'-' + prefix + '-' + prop}: args

box-shadow()
vendor('box-shadow', arguments)

That still give the same vague error. I'm assuming it has something to do with the paths that stylus is running it but I haven't been able to figure it out just yet.

Any ideas?