Open kevinbarabash opened 5 years ago
huh, I wonder if it's a babel config thing
most likely... I would've expected object spread or class properties to be the most likely issue, but they're in the list of parser plugins.
I think this'll be closed be the recent PR merge #6
@jaredly any chance you could publish this update to npm? (Also thanks; I love the project)
/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:3274
if (!this.options.errorRecovery) throw error;
^
SyntaxError: Unexpected token (112:64)
at instantiate (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:653:32)
at constructor (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:946:12)
at FlowParserMixin.raise (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:3270:19)
at FlowParserMixin.unexpected (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:3300:16)
at FlowParserMixin.parseParenAndDistinguishExpression (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:11507:12)
at FlowParserMixin.parseParenAndDistinguishExpression (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:5874:18)
at FlowParserMixin.parseExprAtom (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:11141:23)
at FlowParserMixin.parseExprAtom (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:7007:20)
at FlowParserMixin.parseExprSubscripts (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:10872:23)
at FlowParserMixin.parseUpdate (/Users/abdelrahmanebied/.config/yarn/global/node_modules/@babel/parser/lib/index.js:10855:21) {
code: 'BABEL_PARSER_SYNTAX_ERROR',
reasonCode: 'UnexpectedToken',
loc: Position { line: 112, column: 64, index: 3547 },
pos: [Getter/Setter]
}
Node.js v19.8.1
using "stylecleanup@1.3.0" with binaries:
I tried running
stylecleaup check
on webapp, but babylon runs into some syntax it doesn't expect. Here's some of the output:I'll try adding some console.logs to get some more info.