You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
: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?
documentation/src/parsers/parse_to_ast.js
Line 5 in 0713ce7
9.0.0-alpha.1
The text was updated successfully, but these errors were encountered: