Skip to content

Doc generation failed on extends #650

Closed
@djey47

Description

@djey47

Following issue #418, I'm unable to perform doc generation for one of my JS classes

Here are source contents: https://gist.github.com/djey47/c8c6291f249e0e80d21689ea799df946

When running command (using latest 4.0.0.-beta.18):
documentation build --github -f html -o doc-html/ src/**

parsing fails:
[...]/node_modules/globals-docs/index.js:48 var d = lowerCased[env[i]][name.toLowerCase()]; ^ TypeError: Cannot read property 'toLowerCase' of undefined at Object.module.exports.getDoc /[...]/node_modules/globals-docs/index.js:48:40) at Array.<anonymous> (/[...]/node_modules/documentation/lib/output/util/linker_stack.js:47:26) at firstPass (/[...]/node_modules/documentation/lib/output/util/linker_stack.js:28:24) at LinkerStack.link (/[...]/node_modules/documentation/lib/output/util/linker_stack.js:103:10) at formatters.autolink (/[...]/node_modules/documentation/lib/output/util/formatters.js:65:16) at eval (lodash.templateSources[1]:35:11) at Array.map (native) at eval (lodash.templateSources[1]:34:28) at eval (lodash.templateSources[3]:84:11) at Array.forEach (native) error Command failed with exit code 1.

Note that a workaround exists when using @extends tag in class documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions