Skip to content

Error when trying to generate ISC license #5

@sfrdmn

Description

@sfrdmn

Looks like the header in templates.json is null for ISC, and looks like the code tries to access an attribute on that null header at some point

/Users/sean/npm/lib/node_modules/lice-js/licenseTemplate.js:42
        body: bodyHeader.body,
                        ^
TypeError: Cannot read property 'body' of undefined
    at new newTemplate (/Users/sean/npm/lib/node_modules/lice-js/licenseTemplate.js:42:19)
    at Object.createLicense (/Users/sean/npm/lib/node_modules/lice-js/lice.js:20:25)
    at /Users/sean/npm/lib/node_modules/lice-js/bin/cli.js:99:20
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:551:21
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:227:13
    at iterate (/Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:134:13)
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:145:25
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:229:17
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:556:34
    at async.series.cleanUpArgs.year (/Users/sean/npm/lib/node_modules/lice-js/bin/cli.js:83:19)

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