stylus / nib

Stylus mixins, utilities, components, and gradient image generation
http://stylus.github.io/nib
MIT License
1.91k stars 249 forks source link

Octal literals are not allowed in strict mode #316

Closed jsonmaur closed 8 years ago

jsonmaur commented 8 years ago

Running with Node v4.1.1 with --use-strict flag. When requiring package with var nib = require('nib');, I get the following error:

/Users/.../node_modules/nib/node_modules/stylus/lib/visitor/evaluator.js:1527
  console.warn('\033[33mWarning:\033[0m ' + msg);
                                 ^^

SyntaxError: Octal literals are not allowed in strict mode.
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:413:25)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/jdmaurer/Projects/zab/zab-cli/node_modules/nib/node_modules/stylus/lib/nodes/node.js:12:17)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
jsonmaur commented 8 years ago

Looks like this may be a problem coming from Stylus itself... not sure if it's because of an outdated version or what. Let me know if I need to post this issue in the Stylus repo instead.

alewisohn commented 8 years ago

This is because the stylus dependency is out of date. If you update to the latest version of Stylus, the octal literals have been removed.

jsonmaur commented 8 years ago

Actually forgot about this issue, I got it solved awhile back. Thanks for the response though :)

alewisohn commented 8 years ago

This is not solved. Latest version of nib on npm still requires a version of stylus that uses octal literals.