documentationjs / documentationjs/documentation

getting babel related issues when generating documentation

Open
#1,353 5 comments 1 reaction 0 assignees View on GitHub
needs-testcase
Dominant language
JavaScript
Stars
5.8k
Forks
481
PR merge metrics
No merged PRs in 30d

Description

Getting babel related issues when running: `documentation build './packages/*' -f html -o docs --document-exported --babel=./babel.config.js`

I am not sure what should babel.config.js have to support the error that generating!
I have babel 7 defined on package.json.

**Error:**

SyntaxError: Unexpected token, expected ";" (2:10)
at _temp._raise (/x/.config/yarn/global/node_modules/documentation/node_modules/@babel/parser/lib/index.js:799:17)
at _temp.raiseWithData (/xj/.config/yarn/global/node_modules/documentation/node_modules/@babel/parser/lib/index.js:792:17)
at _temp.raise (/x/.config/yarn/global/node_modules/documentation/node_modules/@babel/parser/lib/index.js:786:17)
at _temp.unexpected (/x/.config/yarn/global/node_modules/documentation/node_modules/@babel/parser/lib/index.js:9089:16)
at _temp.semicolon (/x.config/yarn/global/node_modules/documentation/node_modules/@babel/parser/lib/index.js:9071:40)
at _temp.parseExpressionStatement (/xj/.config/yarn/global/node_modules/documentation/node_modules/@babel/parser/lib/index.js:12117:10)

- What version of documentation.js are you using?: 13.1.0
- How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): CLI

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.