Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with logical assignment operators #1172

Closed
lellimecnar opened this issue Nov 12, 2018 · 0 comments
Closed

Error with logical assignment operators #1172

lellimecnar opened this issue Nov 12, 2018 · 0 comments

Comments

@lellimecnar
Copy link

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?

  • 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
lellimecnar added a commit to lellimecnar/documentation that referenced this issue Nov 12, 2018
tmcw pushed a commit that referenced this issue Nov 14, 2018
@tmcw tmcw closed this as completed in 58d2a2f Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant