Support Flow component syntax
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- babel, javascript
- Domain
- tooling
Research direction
Reproduce the failure with npx documentation build ./Example.js --shallow using the Flow component syntax shown, then trace how the CLI invokes @babel/parser. Done means the example parses without the “Missing semicolon” error and produces the expected flow tag in the output.
Written by the indexing model from the issue text.
Description
Version: [email protected]
Usage: CLI - npx documentation build ./Example.js --shallow
Docs: https://flow.org/en/docs/react/component-syntax/
Code
/** @flow */
component Example( text: string = 'Hello World' ) {
return <div>{text}</div>;
};
Expected
[
{
"description": "",
"tags": [
{
"title": "flow",
"description": null,
"lineNumber": 0
}
]
...
]
Actual
SyntaxError: Missing semicolon. (3:9)
at constructor (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:362:19)
at V8IntrinsicMixin.raise (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:3260:19)
at V8IntrinsicMixin.semicolon (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:3586:10)
at V8IntrinsicMixin.parseExpressionStatement (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:12761:10)
at V8IntrinsicMixin.parseExpressionStatement (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:5073:18)
at V8IntrinsicMixin.parseStatementContent (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:12376:19)
at V8IntrinsicMixin.parseStatementLike (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:12239:17)
at V8IntrinsicMixin.parseStatementLike (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:5051:24)
at V8IntrinsicMixin.parseModuleItem (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:12216:17)
at V8IntrinsicMixin.parseBlockOrModuleBlockBody (/home/anttis/Dev/LianaUI/node_modules/@babel/parser/lib/index.js:12792:36)
- Dominant language
- JavaScript
- Stars
- 5.8k
- Forks
- 479
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from documentationjs/documentation
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
documentationjs/documentation#1669 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
documentationjs/documentation#1666 · 2 comments ·
-
Fix outdated depsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
documentationjs/documentation#1646 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
documentationjs/documentation#1643 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
documentationjs/documentation#1642 · 1 comment ·
All issues in documentationjs/documentation
Similar issues
-
sendDefaultPii is reported as deprecated on ReactNativeOptions although dataCollection is hiddenOpenBug React-Native Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-react-native#6830 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
szTheory/exifcleaner#383 ·
Maintainers usually reply within 1 day
-
Frontend good first issue P2-medium UI UX
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Deepak3699/Ai_Mentor#179 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DrozmotiX/ioBroker.tado#1213 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
python-visualization/folium#2293 · 1 comment ·
Maintainers usually reply within 1 day