Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
sjonnet19 opened this Issue · 5 comments

4 participants

@sjonnet19

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:

/Users/shawn/Projects/cheetah/node_modules/jade/node_modules/commander/lib/commander.js:426
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

@sjonnet19

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

@sjonnet19

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

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

@sjonnet19

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

fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.