vue-docgen-api cannot parse component with template functional
See original GitHub issueCurrent behavior
When launch yarn styleguide command, component functional (<template functional></template>) cause error :
Warning: vue-docgen-api cannot parse src/components/Button/Button.vue: SyntaxError: Unexpected token, expected ";"
To reproduce
I have the vue-styleguidist@3.11.4
Expected behavior
I would like template functional is parse by vue-docgen-api
Thank you very much by advance
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
vue-docgen-api - Vue Styleguidist
Function - Returns if an extended component should be parsed by docgen. NOTE If docgen fails to parse the targeted component, it will...
Read more >vue-docgen-api - npm
vue-docgen-api is a toolbox to help extracting information from Vue components, and generate documentation from it. Use @babel/parser to parse ...
Read more >Adjacent JSX elements must be wrapped in an enclosing tag ...
I am trying to set up my React.js app so that it only renders if a variable I have set is true ....
Read more >gulp-vue-parser - npm Package Health Analysis - Snyk
Parse .vue file to a single cmd/umd javascript file For more information about how to use this package see README. Latest version published...
Read more >vue-styleguidist - Bountysource
The return value of parse have been changed so this part of the example code (in the ... Trying to use a project...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This still seems to be an issue with certain
<template functional>Vue components. I’m having the same problem. Here’s the entire component that fails:This happens when trying to include functional components in Vue Design System.
Wonderful! Thank you!