Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue parsing issue #1060

Closed
sobolevn opened this issue Apr 24, 2018 · 2 comments
Closed

vue parsing issue #1060

sobolevn opened this issue Apr 24, 2018 · 2 comments

Comments

@sobolevn
Copy link

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

@tmcw
Copy link
Member

tmcw commented Apr 24, 2018

Looks like the vue mode has a baked-in expectation that all vue components have a script. Adding a fix for that now.

@sobolevn
Copy link
Author

@tmcw thanks for the quick response! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants