Skip to content

getting babel related issues when generating documentation #1353

Open
@lfaz

Description

@lfaz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions