Skip to content

vue parsing issue #1060

@sobolevn

Description

@sobolevn

Output:

TypeError: Cannot read property 'content' of null
    at parseVueScript (/Users/sobolev/Documents/github/wemake-vue-template/template/node_modules/documentation/lib/parsers/vue.js:15:63)
    at /Users/sobolev/Documents/github/wemake-vue-template/template/node_modules/documentation/lib/index.js:98:14
    at arrayMap (/Users/sobolev/Documents/github/wemake-vue-template/template/node_modules/lodash/lodash.js:631:23)
    at map (/Users/sobolev/Documents/github/wemake-vue-template/template/node_modules/lodash/lodash.js:9546:14)
    at Function.flatMap (/Users/sobolev/Documents/github/wemake-vue-template/template/node_modules/lodash/lodash.js:9249:26)
    at buildInternal (/Users/sobolev/Documents/github/wemake-vue-template/template/node_modules/documentation/lib/index.js:92:31)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)

Reproduction steps:

If you're reporting a bug, please include input code, output documentation,
a description of what you expected to happen, and what happened instead.

  • What version of documentation.js are you using?:
    "documentation": "^6.3.0",

  • How are you running documentation.js (on the CLI, Node.js API, Grunt, other?):
    node -v v9.4.0
    npm -v 5.6.0

Refs #1056, refs #1055, refs #952

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