LearnBoost/stylus — Issue #516: Variable name on node v0.6.6
Author: alejandromg
Created: 2012-01-13 05:30:38+00:00
State: open

Well, turns out that when I'm trying to use stylus I get this error:

/dev/stylus/lib/middleware.js:212

? import.path
^^^^^^

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError:
at Module._compile (module.js:427:25)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/dev/stylus/lib/stylus.js:51:22)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)

Everytime that a param with the name `import` it's passed on methods, prototypes or functions, I reach this error. In the `evaluator.js`, `compiler.js`, `middleware.js` ... each of then are throwing the same error. If I rename `import` for `wherever` it just work.