Skip to content

0.9.13 fails: Object #<Object> has no method 'parse' #132

@joeyparrish

Description

@joeyparrish

I'm running ./node_modules/.bin/htmlhint demo/index.html

No problem with the same .htmlhintrc in 0.9.12.

.htmlhintrc is

{
    "alt-require": true,
    "attr-lowercase": false,
    "attr-no-duplication": true,
    "attr-unsafe-chars": true,
    "attr-value-double-quotes": true,
    "attr-value-not-empty": false,
    "csslint": false,
    "doctype-first": true,
    "doctype-html5": true,
    "head-script-disabled": false,
    "href-abs-or-rel": false,
    "id-class-ad-disabled": true,
    "id-class-value": true,
    "id-unique": true,
    "inline-script-disabled": true,
    "inline-style-disabled": true,
    "jshint": false,
    "space-tab-mixed-disabled": true,
    "spec-char-escape": true,
    "src-not-empty": true,
    "style-disabled": true,
    "tag-pair": true,
    "tag-self-close": false,
    "tagname-lowercase": true,
    "title-require": true
}

Output is

/home/joeyparrish/hacking/shaka/js/node_modules/htmlhint/bin/formatter.js:30
        var fileInfo = path.parse(file);
                            ^
TypeError: Object #<Object> has no method 'parse'
    at /home/joeyparrish/hacking/shaka/js/node_modules/htmlhint/bin/formatter.js:30:29
    at Array.forEach (native)
    at loadFormatters (/usr/local/google/home/joeyparrish/hacking/shaka/js/node_modules/htmlhint/bin/formatter.js:29:14)
    at Object.<anonymous> (/usr/local/google/home/joeyparrish/hacking/shaka/js/node_modules/htmlhint/bin/formatter.js:11:17)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions