-
Notifications
You must be signed in to change notification settings - Fork 489
Closed
Description
I am using logical assignment operators in my code, but when I run the CLI build command, it generates no files, and I get the following error from @babel/parser
:
{ SyntaxError: This experimental syntax requires enabling the parser plugin: 'logicalAssignment' (13:18)
at _class.raise (░░░░░░░░░░/node_modules/@babel/parser/
lib/index.js:3939:15)
at _class.expectPlugin (░░░░░░░░░░/node_modules/documentation/node_modules/@babel/
parser/lib/index.js:5253:18)
at _class.parseMaybeAssign (░░░░░░░░░░/node_modules/documentation/node_modules/@ba
bel/parser/lib/index.js:5749:14)
at _class.parseMaybeAssign (░░░░░░░░░░/node_modules/documentation/node_modules/@ba
bel/parser/lib/index.js:2585:53)
at _class.parseExpression (░░░░░░░░░░/node_modules/documentation/node_modules/@bab
el/parser/lib/index.js:5684:21)
at _class.parseStatementContent (░░░░░░░░░░/node_modules/documentation/node_module
s/@babel/parser/lib/index.js:7267:21)
at _class.parseStatement (░░░░░░░░░░/node_modules/documentation/node_modules/@babe
l/parser/lib/index.js:7153:17)
at _class.parseStatement (░░░░░░░░░░/node_modules/documentation/node_modules/@babe
l/parser/lib/index.js:1902:57)
at _class.parseBlockOrModuleBlockBody (░░░░░░░░░░/node_modules/documentation/node_
modules/@babel/parser/lib/index.js:7707:23)
at _class.parseBlockBody (░░░░░░░░░░/node_modules/documentation/node_modules/@babe
l/parser/lib/index.js:7694:10)
pos: 326,
loc: Position { line: 13, column: 18 },
missingPlugin: [ 'logicalAssignment' ] }
I have @babel/plugin-proposal-logical-assignment-operators
installed locally, and I have it in my .babelrc
file as well, but it doesn't look like it's enabled in the parser plugin options.
Would it just need to be added here?
const opts = { |
- What version of documentation.js are you using?:
9.0.0-alpha.1
- How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): cli
Metadata
Metadata
Assignees
Labels
No labels