TypeError: Object { has no method 'is' #687

sjonnet19 opened this Issue Jun 23, 2012 · 5 comments


None yet
4 participants

I am trying to track down the issue but it only happens when I execute jade against the CLI using the -o and -O options. The same command has been working for sometime now.

Error message:

if (this.options[i].is(arg)) {
TypeError: Object { has no method 'is'
at Command.optionFor (/Users/shawn/Projects/cheetah/node_modules/jade/node_modules/commander/lib/commander.js:426:25)
at Command.parseOptions (/Users/shawn/Projects/cheetah/node_modules/jade/node_modules/commander/lib/commander.js:466:19)
at Command.parse (/Users/shawn/Projects/cheetah/node_modules/jade/node_modules/commander/lib/commander.js:347:21)
at Object. (/Users/shawn/Projects/cheetah/node_modules/jade/bin/jade:54:9)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Array.0 (module.js:484:10)
at EventEmitter._tickCallback (node.js:190:38)
make: *** [compile] Error 1

I have verified it is a change in the latest point release.

So the problem lies in the way Jade is now handle a string of options. Below used to work but now give the above error.

jade file.jade -o '{ "filename": " ", "domain": "something.io", "version": "v1.0.0", "title": "", "description": "", "keywords": "" }' -O ./public/file.html

bramsey commented Jul 13, 2012

Was this fixed with the commander version update in release 26.3? I haven't been able to reproduce this bug.

I forget what TJ did but he fixed it for me... I've been busy and forgot to close this probably. TJ let men know.


vendethiel commented Mar 19, 2013


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment