Skip to content

Cannot browserify jsonlint: module "file" missing #57

@josdejong

Description

@josdejong

Thanks for offering jsonlint via npm, works great.

I stumbled upon one issue though: when I try to browserify jsonlint, an error is thrown:

Error: Cannot find module 'file' from '/home/ubuntu/workspace/node_modules/jsonlint/lib'

The module file is required here in the source code:
https://github.com/zaach/jsonlint/blob/master/lib/jsonlint.js#L424

It looks like the "file" module is missing from the dependencies in package.json. But maybe this code is redundant anyway: I guess if you're not running node.js (i.e. typeof process === 'undefined'), the file module won't work either?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions