donpark / html2jade

Converts HTML to Jade template. Not perfect but useful enough for non-daily conversions.
MIT License
1.18k stars 157 forks source link

[TypeError: Object #<Object> has no method 'env'] #35

Closed iegik closed 12 years ago

iegik commented 12 years ago

jsdom v0.1.20 mjsunit.runner v0.1.3 request v2.9.202 node v0.6.12

donpark commented 12 years ago

I need more information to find the problem, stack trace at least and example html file you are having issue with.

iegik commented 12 years ago

$ ~/src/html2jade/bin/html2jade test.html The "sys" module is now called "util". It should have a similar interface. [TypeError: Object # has no method 'env']

The source of test.html: <p>fff</p>

donpark commented 12 years ago

I'm sorry but I just can't reproduce this.

don@ironforge:~/dev/github/html2jade/test/data
$ cat pfft.html
<p>ffft</p>

don@ironforge:~/dev/github/html2jade/test/data
$ html2jade pfft.html

don@ironforge:~/dev/github/html2jade/test/data
$ cat pfft.jade
html
  body
    p ffft

My html2jade installation:

├─┬ html2jade@0.1.18 
│ ├── commander@0.5.2 
│ └─┬ jsdom@0.2.14 
│   ├─┬ contextify@0.1.3 
│   │ └── bindings@1.0.0 
│   ├── cssom@0.2.4 
│   ├── htmlparser@1.7.6 
│   └── request@2.9.202