Skip to content

Cannot read property 'split' of undefined #22

@sakrist

Description

@sakrist

Got issue when I run node json2code.js test_schema.json VB

~/Downloads/json2code-master/json2code.js:154
      folder = path.join(folder, path.join(...pkg.split('.')));
                                                 ^
TypeError: Cannot read property 'split' of undefined

example scheme is http://json-schema.org/examples.html

node --version
v8.1.4
npm --version
5.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions